Add unhandled exception handler. Remove Sentry, which we are abusing.
jshint fixes