Rename "isPostAndValid" to "isSubmittedAndValid" and refactor it. Add possibility for specific form elements to auto-submit their form. refs #4439
The login form was broken, as it used the old form api (disableCSRFToken instead of setTokenDisabled and isValid instead of isPostAndValid) refs #4459
Add regression testing for php: structure and bogus test. refs #4102