Changed incorrect definitions and paths to the dojo library.
Added new service to understand if error might be handled automatically.