Detect and output correct file mimetype, fixes welefen/Fiddler#4

I use https://github.com/Rosario-Gueli/MimeTea.js to get file MIME type. Please have a check on this.