* Added a task to Gruntfile to use website/src/i18n.js to generate a small JS file to be loaded in Karma env which sets window.env.translations to the i18n.translations['en'].
* Added new Grunt task to build:dev
* Updated Karma specs to reenable testing where possible, updating comments where not.
* Repair broken e2e test introduced in 8d03cfc (copywriting change was not
reflected in the spec)
* Updated i18n.coffee code to be more cautious (it expected the 'en' locale
would always be available, but provides appropriate error handling as-is).
* Extended timeout duration for protractor, as registration was slightly above
30s.
* Added karma-mocha-reporter as a dev dependency to ensure test visibility.
This pends a lot of tests that are failing due to translations not being loaded in the environment, as well as some issues with the page reload in groupServicesSpec.
We removed the module declarations for habitrpg in each spec since that
has been moved to specHelper.
There were a few issues here:
1. Relying on globs meant that modules were loaded out of order. So
'habitrpgc' was undefined when we were trying to add services etc to it.
The short term solution is to list them in the same way we list them in manifest
json. The long term would be switching everything to browserify so as to
avoid ordering/listing nightmare by having a single bundle.
2. We were missing exeternal deps (like 'hello') so the tests were
breaking before they even started. Some of them still are
3. We were including services that don't seem to exist anymore (e.g. `habitrpgstatic`). We still are in certain places
The way the tests are written now, the habitrpg module definition in static.js
was clobbering the one in app.js. In other words, most of the tests weren't
testing what they thought they were testing.