Add validations for space quota service related fields

[#74628352]

Signed-off-by: Joseph Palermo <jpalermo@pivotallabs.com>
Handle duplicate id during user creation

[#75570496]
Validate total routes against org and space quota

[#74628352]

Signed-off-by: Michael Fraenkel <fraenkel@us.ibm.com>
Make the request bodies look pretty

[#75744058]

Signed-off-by: Zach Robinson <zrobinson@pivotallabs.com>
Eager load apps' current droplets in bulk apps controller

Signed-off-by: Simon Leung <leungs@us.ibm.com>
Eager load all app associations in bulk apps controller

Signed-off-by: Simon Leung <leungs@us.ibm.com>
Log any unexpected error that causes EM to exit

[#73989144]

Signed-off-by: Michael Fraenkel <fraenkel@us.ibm.com>
Return a bad request when the default quota is missing

* raise an exception when the default quota definition no longer exists
* translate a missing quota definition to an invalid organization response

[#75231866]

Signed-off-by: Michael Fraenkel <fraenkel@us.ibm.com>
Avoid relative require

so moving file is easier

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Move specs to match layout of code being tested

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Namespace everything in cloud_controller/dea

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Categorize HM9000 code as DEA specific

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
/v2/service_auth_tokens returns more specific deprecation message [#61949108]
Make method private

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Move StagerPool into DEA namespace

Since it does not apply to Diego

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Move instances reporters into DEA and Diego namespaces

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Namespace AppStagerTask under VCAP::CloudController::Dea

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Namespace StartAppMessage under VCAP::CloudController::Dea

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Move nats_messages into VCAP::CloudController::Dea

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>
Globals is really the Dea::SubSystem

Signed-off-by: Abhijit Hiremagalur <abhi@pivotallabs.com>