Puma middleware

Equivalent middleware for [Puma](https://github.com/puma/puma) server.