Fix procfile to use proper flag.
Detect mimetype from extension if not found in content.
First guess by filename, then by sniffing content.