Improving Accept header handling

This change brings basic Accept header parsing in line with the spec, improves support for MIME type parameters, and exposes parameters in Accept headers for use by the application.