Version 0.1.157

* Implemented middleware adapter, close #164, related issue #165
* Added
examples for middleware and some code style refactoring