Moved library code out of the misc directory to lib
Added repository to package.json
Updated grunt and karma versions
Added some debuging code that was useful in debugging my config
Added tests using Karma/Jasmine, one per scenario since requirejs has a global cache that gets in the way