Add catch-all error mechanism and send error email with full stack trace
At the moment, uncaught errors kill the webserver without sending out an email with the exact cause. The only email we get is that the node server is restarting. Subsequent digging through log files is needed to determine the actual cause. Instead, a catch all handler should be implemented which will send an error email with the full stack trace of the exception.