(PDB-456) Added environments endpoint and related query functions

Querying for all environments i.e. /v4/environments now supported along
with similar short hand queries for reports, events, resources and facts
like /v4/environments/PROD/facts/...