Preliminary support for returning eventId with /event POSTs
Added support for throwing errors outside the context of $app->run();
Moved global/singleton vars into $env
Fixed view/middleware implementations