Submit-event on login form was set on every pageshow-event

This propably caused the problem, where the test script
submitted the form before the event had been set.
Event is now set once on load and the submit button is disabled
untill the page is shown.
Login test now waits for the submit butten to be active.
Add a loading widget for modernizr test in QUnit tests, and other cleanup.