Fix /v2/domains/<guid>/spaces

Signed-off-by: Phan Le <ple@pivotallabs.com>
[finished #62524114]
Clean up domains in cloud controller

We were specifying special noop functions for adding, deleting, and
clearing domains from organizations because the meta-programmed tests
epxected those to exist.  We removed this functionality and moved the
organizations/domains specs and the spaces/domains specs out of
meta-programming.

Signed-off-by: Phan Le <ple@pivotallabs.com>
Add debug print out for debugging flakey test.

Signed-off-by: Phan Le <ple@pivotallabs.com>
Remove unused test and update test example description
Bump loggregator_emitter gem to 3.0

Signed-off-by: Matthew McNew <mmcnew@pivotallabs.com>
Merge pull request #137 from cloudfoundry/remove_src_type

Bump loggregator_emitter gem to 3.0
Add app usage events.

[#62480432]

Signed-off-by: Phan Le <ple@pivotallabs.com>
Endpoint for getting app usage events.

Also add ability to authorize index endpoints.

[fisnished #62480432]

Signed-off-by: Phan Le <ple@pivotallabs.com>
AppUsageEvents created when you scale a started app

[finishes #62480744]

Signed-off-by: Phan Le <ple@pivotallabs.com>
AppUsageEvent when deleting an app

[finishes #62480766]

Signed-off-by: Phan Le <ple@pivotallabs.com>
Make error handling more generic in specs so it works for mysql too.

Signed-off-by: Phan Le <ple@pivotallabs.com>
undo pull request that led to performance regression

This would make anything trying to start an app take much longer as it
did a GET of the first page of the entire S3 bucket. This would lead to
a bunch of app starts snowballing and the CC becoming unresponsive.

Revert "Added tests to confirm pull request fix"

This reverts commit e07a5124ee2c08ab33210d45881b17b198c86d21.

Revert "Fixed indentation on shared tests"

This reverts commit e68e8df4c803351ba5157f366499d36eb5176545.

Revert "Fix issue with S3 blobstore in non-standard endpoint"

This reverts commit 9d6c6f6dc3481d9ceb5bb3e9a4116c55bdb4348f.