Implement function version. Implementation complete.

A web context object is now used instead of the tornado.httputil.HTTPServerRequest object.