Get rid of some method calls in the config files.
Include events component.
Use our own application class.
Some quick hacks to make everything work without the Laravel application class.

Mainly aliases, paths and a helper function.