Filtering by environment statuses added

Tests improved
Test data generation added
Checking of aggregation requests added

Blueprint: send-anon-usage
Change-Id: I0b76ff368a8d6e5a2bb8d598195257d052151f45
Merge "Filtering by environment statuses added"