Guess mime type with python-magic if available. Fixes #1514.

This makes Pelican's built-in server better at guessing mime types, if a relatively recent version of the python-magic package is installed. It falls back to the default behavior when python-magic is unavailable or old.