Rack middleware to handle raw file uploads