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
Merge pull request #9 from bnewtonius/master

requirejs compatibility fix, returning function pointer.