Move JSCallback to middleware

As a filter, it fails to include headers and status codes that are added
to the response in the middleware chain.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Merge pull request #29 from stephencelis/js-callback-middleware

Move JSCallback to middleware