Added middleware.  Resolves issue #5
Merge pull request #9 from young-steveo/real-middleware

Added middleware.  Resolves issue #5