Added a content-type handler which gets the extension of the requested file and returns the right content-type for the HTTP response instead of a static content-type.
Fixed content-handler. There was a bug in the default ContentType