Code tweaks [WIP]

* Using app.enable()/app.enabled()
* Better server error handling