Cleaned up application class and namespaced error action.