Fixes the content type of form uploads by using the file-utility. A lot of browsers screw up the content type so we don't trust the given value in the header.
For rails, in environment.rb, just add
For sinatra, add
Other rack applications need to use the middleware accordingly.
Uses the MIT-LICENSE