Added an async parameter to registerCallback.
Passes in a callback to the custom execution methods.
Form validation will now wait for all asynchronous events to complete.
Merged with async branch.