Core: Use return value of submitHandler to allow or prevent form submit

Gives more control to the user over allowing or preventing the native
submit event, instead of always preventing it.

Fixes #650