Replace IOLoop.update_handler with remove_handler and add_handler

Using IOLoop.update_handler was causing issues with Exception handling in tornado.gen in the host application to the extend that the errors were returned on the wrong RequestHandler. Even other code errors. I assume it has something to do with the StackContext. add_handler creates a new StackContext, but update_handler doesn't.