Merge pull request #8 from bnewtonius/master

Fixed a bug for AMD/requirejs compatibility
version 0.9.1
Fixing the require.js part.  It was working the way it was before, but it was not working the way requirejs expects it to, which was causing problems when trying to optimize using r.js.  Changing it to return the Mediator function as the factory makes it behave correctly on use, and when optimized