Simplify proxy request code

By binding the default context and currying the handler. Also include an
error handler for sanity.