Adds some support for rich value attributes

Primitive attributes may now indicate a rich value type such as
@image/jpeg or @image/html (the underlying data is still assumed to be
already an HTTP or data URI though; no support for transforming other
data formats into base64-encoded data URIs has been added).