Changed the order tests are run.

* Modifed Gruntfile.js to run unit tests before jsHint, as one probably want to see them even if jsHint fails.
* Added WebStorm files to .gitignore.
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.
Merge branch 'master' into testMocks
Changed to not use .prototype where it is not needed.

* Changed from adding methods to the Mock.prototype object to instead adding them to the object using the this reference.
Added a method for listening to method calls.

* Added listeners for method calls to the mock class.
Merge pull request #62 from verath/testMocks

Improvements to the structure of the tests.