Add binding for form data-onsubmit.

Having trouble testing this in qunit. For some reason it ignores
the onsubmit handler and enters and infinite loop reloading the
page. It seems to work fine when manually testing it in the lab.