Commercial modules refactor

Made them more self-contained (but switch checking logic in them), and also added tests

Also testing out [Squire.js](https://github.com/iammerrick/Squire.js/) as a way of mocking RequireJS' dependecies - cc @jamesgorrie