feature/module-loader-tests

Added unit tests for the module loader and refactored the class for better testability. Included in this PR is a mixin for debugging that may be useful for other classes as well.

To run the tests go to [http://localhost:8000/jasmine](http://localhost:8000/jasmine).

@jazahn Can you review this?