File types

Fix Content-Type issues which affect some browsers, like Google Chrome. Make Content-Type handling fast and predictable by using a hard coded list.