refactor(build): Extract `require_config.js` from the configuration contents of both the main app and the unit tests.

* Only configure requirejs in one place.
* Works great with production builds.

fixes #1245
Merge pull request #1311 from mozilla/issue-1245-require-setup

refactor(build): Extract `require_config.js` from the configuration contents of both the main app and the unit tests.