Adding RequireJs and replacing test framework

Mocha is now used for testing. RequireJs was added to help manage dependencies.