add Configuration#middlewares to customize middleware stack
Merge pull request #34 from groman-me/add_option_middleware

add Configuration#middleware tocustomize middleware stack