Add the alias function, with tests
Merge pull request #53 from snapshotmedia/issue-52

Add the alias function, with tests
Bumped the version numbers to v4.2.2.
Removed some spaces in the alias JSDoc.

It makes the comment look a lot nicer, but it might mess up the
generated documentation. I'm just keeping it the same as all of the
other JSDoc strings for now.
Joined the alias JSDoc into one line.

I prefer the 80 character limit, but again, I think it will mess with
the generated documentation.
Assigned alias to the private API.

So it will not pollute the public API documentation.
Named the returned alias function.

Just makes it nice and easy to see what function is what. You don't want
your application to get into a state where you have layers and layers of
unnamed functions. It's really difficult to work out where you are in
the execution. At least naming these closures gives you an idea as to
where you are in the stack.
Added spaces after function, before parens.

Silly JSLint stuff.
Removed useless comment and improved module check.

Now it checks if module is an object, and not !undefined.
Built version v4.2.2.
Merge branch 'release/4.2.2'
Merge branch 'release/4.2.2' into develop
Added a failing test for recursive once calls.

Taken from issue #54
Added a fix for the recursive once calls.

Now once methods are removed from the listener list before the method is
actually called. This prevents infinite recursion when using
addOnceListener.

It will not prevent the once listeners that are indicated with a return
value, there is no way around that one.

Fixes #54
Merge branch 'feature/fix-recursive-once' into develop
Bumped the version number to 4.2.3
Built v4.2.3.
Merge branch 'release/4.2.3'
Merge branch 'release/4.2.3' into develop
Added the removeAllListeners alias. Fixes #58

Also added a quick test of it.