Changed to covert catalog version to a string for wire formats v1-v3. Also a
minor doc update for the terminus.
(PDB-454) Added support for querying/returning environments for resources and facts

All v4 responses for resources and facts should now return environments. Also supported
is querying for environments using equals and regexes.