Improvements to the structure of the tests.

Created mocks for some classes used by the modules;
* Created a base class Mock, that can mock a simple object.
* Created mockIrcClient and mockLoader classes, that mocks irc.Client and Loader respectively.
* Changed the tests to use the mock classes.

Also changed the order the two test tasks are run, as to make sure unit tests are run even if jsHint fails.