state: removed unnecessary docID calls

Many calls to State.docID() are now unnecesary because since the introduction of envStateCollection.

This change also adds the openedPorts and subnets collections to the list of those which contain data for multiple environments.