Add ajaxOnSubmit as an AJAX complement to onSubmit.

This is meant to be applied to a button or input type="submit" element,
and adds the attributes needed to correctly run an AJAX form submission
using that button.
Expand docs for ajaxOnSubmit to clear up differences with ajaxSubmit.