Notes for Middleware

This commit adds a prepare method to the generic handler that we will
override with our own method. The prepare method is one that is
pre-defined in tornado to call before a request method is called. There
is another called on_finish to call after the request method. The method
has not yet been defined, but a description of the likely course of
action in completing it has been added as a comment.