Review and cleanup the last commit by Antti.
Refactor pushd.coffee, otherwise it is slowly becoming unreadable.
New API endpoint GET /events.
Returns the names of all currently registered events