Complete rewrite of the sproxy.js API.

Replaced onEnter, onExit, onError, and onFinal as individually specified functions with a single handler function that takes an execution context. The execution context provides metadata about the original function as well as a way of invoking it with the continue() method.