Base code for the application class
Set root in error handler