can now be used as middleware like in issue #4
updated docs for #4
Merge pull request #7 from jeremiak/middleware

can now be used as middleware like in issue #4