Added full support for media types.
Improved HTTP server test.