Move the logic for loading YUI modules to its own class, so that it can
be tested easier.
Got Mocha working, albeit not doing anything useful