The main focus of this commit is to introduce a test for the publisher reapplication, but it has some other side effects:

* Fix another reference to the application form factory
* change all validators of InputRequired to DataRequired for back-compat with our previous version
* minor bug fixes in formcontext and xwalk