Added uncaught exception handler to log errors

Added an uncaught exception handler to the HTTP restify server, which logs the
exception and sends a response with the error. This replaces restify's default
exception handler.