added very basic mime type guessing

to allow extracting stylesheets to external files (and maybe some images), I've added a very basic mime type guessing, based on the requested URL