Added filetype handling via mime type recognition

Fixed the bug where the browser interpretted all files as simple text. I used `file --mime-type` to retrieve the mime-type and adjust the HTTP header accordingly. I tested this on TXT, JPG, and PDF.