Moved the inappropriate application_response to the actual Application class;