Change the app's helper methods to real methods

Had some trouble with php5.3, where you can't use $this inside an anonymous function.

Also add the event manager to the app, can be accessed through $app['event']