registration can specify an 'init' method

* setting up the jasmine test infrastructure
* jasmine tests for container and dispatcher
fixing the container to acutally register singleton instances