state: use a raw collection when load settings

This is required to allow loading of settings before the env UUID
migration for settings. Without this change upgrades to 1.22 fail.
Merge pull request #1280 from mjs/settings-read-hack-fix

state: use a raw collection when load settings

This is required to allow loading of settings before the env UUID migration for settings. Without this change upgrades to 1.22 fail.

(Review request: http://reviews.vapour.ws/r/595/)
state: removed unnecessary docID calls

Many calls to State.docID() are now unnecessary 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.