Refactor UI tests
Code clean up in UI tests
Adding fixtures to jasmine tests

using karma to setup html fixtures for dom based tests
Adding jasmine based karma unit tests for all modules
see #265