Added support for server-side connection timeouts.
Fixed a bug in MimeType when the URL has no extension.