Moved custom-mimetypes into one place.
Made usage of HttpClient a bit more consistent and sensible.