CS-4543: Unnecessary error reporting exposed on front-end templates.

Validates APPLICATION_ENV, sending errors to view only if in development mode
CS-4543: Unnecessary error reporting exposed on front-end templates.

Removes error dumping from view.
Removes crlf endings