Refactor API routes to be more like Artoo API
Correct bug with defineEvent()
API now functions correctly
Properly set up websockets
Merge pull request #21 from hybridgroup/refactor-api

Refactor API