unit test structure + new unit tests

Added structure to the unit tests and some more unit tests for the view model.

The javascript files with unit tests are updated:
* scoped variables to avoid naming collitions
* grouped the different suites with the QUnit "module" feature
* setup and teardown for the shared variables used in the unit tests.
* added some more new unit tests for the view model.