Pulled out exception handling to separate file.  REST 404s now give the not found page.