Error Pages base code
Added specific pages for error 404 and 500 and a default page for other errors.
Returning proper HTTP error codes and everything!
Added error and exception handlers.
General improvement of error reporting in all places.
Things now throw exceptions instead of returning arrays, etc.
Logging on errors in framework