Implement a real rendering pipeline.

This now assembles an EntitiesDescriptor if there is more than one
EntityDescriptor, and adds cacheDuration, validUntil and a random ID to
the document element.