Fixed error handling to avoid CookieOverflow

Only unique errors are now shown, and the Flash hash is no longer used so that errors aren't stuffed into the session. Good for large invalid files. Unhandled StandardErrors are now printed out and avoid generic HTTP 500 responses.