[example] Add an example of how to use a custom middleware
[minor] Rename the example directory to examples
Merge pull request #235 from lpinca/add/middleware-example

Add an example of how to use a custom middleware