Make custom values on new contributions available to hooks

Build the custom values before calling Contribution.create, so
hook_civicrm_post implementations will have access to the data.

Change-Id: Ib4372c007314d0e3b14569a244a0a9651e65cf45