removes App.debug and jshint it
support for mode in hash, reads any combination of error, trace and performance values
dispatch error if document is not found