Guess the content type of a file

 Fixes #89