Fixed mixed whitespace.
Removed trailing whitespace from test files
Fixed exporting the EventEmitter object
Simpler UMD definition
Merge pull request #107 from badsyntax/master

Fixed exporting the CommonJS module, and general whitespace fixes.