Added parsing of arbitrary media type parameters.

Based on #4918.

Related to #4127.

Conflicts:
	actionpack/test/dispatch/mime_type_test.rb