Added karma to the project for running tests
refactored tests to work with karma
added build file and minified built files
added an onContextCreated event subscribe function to moquire, which is called whenever a new context is created