Added QUnit tests for the javascript and did some minor tweaks.
Merge branch 'master' of https://github.com/markus-git/webapp.git