onSubmit Hook

There you go, I've create a configurable onSubmit hook. I'm not sure about the diff for the `"default"` key though. 
`default` was changed to `"default"` with #199
...haven't tested it yet though