factored events.coffee is still a mess, but server runs again