Added support for viewing the source of document artifacts.
Ensure that the ACE editor is properly destroyed.  Also make sure that
the source tab in the UI is not present unless the artifact has text
content.