moved processing of page themes to wait for loadRequires to complete
moved setting the comp type on new docs before loadrequires
Merge branch 'master' into 3827-getlibroots-async