moving stuff out from lib, because they are still part of the global app namespace
typo
adding a global error handler, and a base view that makes use of it