Puma middleware

Equivalent middleware for https://github.com/puma/puma server.