added better handling of errors
added errors controller and custom error pages