Insert document_type script, and other minor fixes to the Document UI task.
Merge branch 'develop' of https://github.com/contento3/Projects into develop