Modify browser-based tests to work with Require.js optimised version of forge

In response to the discussion in #46, I have moved things around slightly and added an r.js build file so it's possible to run the tests with both the normal and minified versions of the JS.