Plack middleware for parsing JSON post data