Improved handling of errors in development

Fixed the default error handler specified in settings.js which was clobbering the production/dev/test error handler definitions. Development handler now outputs trace information.