added swapfiles to .gitignore
Added event broker and tests #2
cleaned up code via jshint #5
Added jsdoc documentation fixes #6
Updated eventbroker subscribe/publish test to expect new callback signature
Refactored Gameloop to use EventBroker