split http server into middlewares
Merge pull request #228 from ssbc/stackify

split http server into middlewares