Created mocks for 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.
* Changed the tests to use the mock classes.