(feat) Added generic impl of Middleware for fns.
(doc) Refactored to use new fn middleware.
(doc) Added example of bidirectional middleware.
Merge pull request #60 from reem/feat/fn-middleware

(feat) Added generic impl of Middleware for fn(req, res, alloy) -> Status.