Added additional error codes
Twig failure now passes errors
Router is now passed to Controller constructor