Generic MIME type and content length handling

This will be used for data and file URLs.
Requires changes in Haiku network kit (BUrlResult reintroduction) I'm
going to commit after the haikuwebkit package is ready...