A pure lua module for detecting the mime type of a file based on the contents - inspired by libmagic