Stochastic integration by parts and functional Itô calculus.