Started to add the framework for the addition of gradients and Hessians.
Authored by: bugman 2008-07-23
Parent: [r6940]
Child: [r6942]