Dry and sanitize.

The submitFormAsJsonTest wrapper has named attributes.
The callback in the submitFormAsJsonTest wrapper has been changed
to use the now native callback option of Form2Json.submitFormAsJson.
Button click submit test.
Handle submit button clicks.