Remove delete /v2/organizations/:guid/domains/:guid

Replaced the endpoint with a 301 response

Signed-off-by: Phan Le <ple@pivotallabs.com>
Deprecation header for /v2/domains endpoints

Helper "deprecated_endpoint" in RestController::Base to deprecate a path
Custom matcher "be_a_dreprecated_response" in matchers.rb

Signed-off-by: Phan Le <ple@pivotallabs.com>
Add deprecated header to requests to spaces' and ogranizations' domains

e.g. GET /v2/organizations/:guid/domains/:guid

Signed-off-by: Phan Le <ple@pivotallabs.com>
Fixed a flaky spec and refactored temp file creation

Added TempFileCreator with a temp_file_with_content method

Signed-off-by: Phan Le <ple@pivotallabs.com>