Add beforeSubmit

Optional argument that fires in the beginning of the submit() handler on the form. Allows for any client specific pre-processing to fire before the actual validation is attempted.