Only show main documents (and not sub-documents) in launch and report pages

[#84488450]
Only show launch link for documents that are codap main documents

i.e. the document content has the _permissions key.

[#84488450]
Only show main codap documents when asking for all documents

[#84488450]