Document Metadata (Errors and Title)

** Document Metadata (Errors and Title) **

This PR adds two fixes to the metadata template for documents.  It replicates the layer metadata template where possible.  First, it creates a title for the "Editing details for ____", since documents do not have a typename.  Second, it replicates the error display from the metadata template for layers.  Categories are "required".  Therefore, metadata updates were previously failing silently without any errors displayed if the user did not select a category.

Additional fixes coming soon that will affect layers, documents, and maps together.
Sorry for not being clear the first time around. With the unicode comment, I was wondering what would happen here if self.title was unicode - it seems to work but I often get confused/tricked w/ python unicode.