Tidy up the registration of representation types

Rename Application.register_content_type() to
register_representation_type(). It now takes just a representation type
(i.e., it no longer takes the content type as its first args since all
representation types must have a content type).
Add quality to representation types

This is used to do better content type selection for */* and unknown
content types.