Use old files url when serving files from CC

  This commit makes CC fall back to using the old directory server on
DEA's when serving the file directly from CC (instead of handing out a
redirect URL). This is to accomodate nginx without a resolver
configured.
  Interface of DeaClient#get_file_uri has been changed.

  Test plan:
  - all unit tests passed
  - No BVT regressions
  - Manually tested the v1 files api url on an nginx-enabled CCNG works

Change-Id: Id3fa886058fcda232fc169a696d1b7cb3cb1a898
Properly encode tail param in query string

  This commit removes the assumption on the uri returned by the DEA and
properly manipulates the tail parameter.

  Test plan: no bvt regressions. all unit tests passed.

Change-Id: I2f87c60782a6c4f4b6eec3b722a142a7bd3c17a5
Use local bind address

  This change removes the inconsistency between:
  a) The host address CC listens on
  b) The address CC advertises on the message bus.

  Test plan: create a 3-network deployment and verify that CC is
reachable after registering with router.

Change-Id: I6f047796daa5c93b71ff361887403b2b253d500c
bump steno

Change-Id: I9c30a727ad677c1014f5b7583241e7ede449d3ef
vcap ring buffer

Change-Id: I7487a4028dd1278787651277996f36006860c794
return ringbuffer or recent errors in varz

Change-Id: Ie4a80eaedc7373632cf4ebb82e4d5c434376563b
Add play framework.

Change-Id: I8c8585961ad485e4cf427bf21b06799ecf126c2d
Merge "Add play framework."
Bump steno to include fix for ephemeral IO errors.

Change-Id: I961a47d304ced6b6b64073c291279d037baa8e2f
extra debugging in base model controller

Change-Id: I38b6c2f8b49fd895e6ec07257252f31cd8caf7e0
optimize serialized relations_hash

we were accidently looking up an extra level of objects, even if we didn't need
to serialize them.

Change-Id: Id7692718d104d1f973c66c662660e0a0bf8c13c6
refactor spec env setup into a helper class

Change-Id: Icfdfe5f1ee832a32d905ba62719f46f46a9f9cb8
speed up model specs

bundle exec rake spec SPEC=spec/models/*.rb

Before:
Finished in 1 minute 55.17 seconds
591 examples, 0 failures

After:
Finished in 10.05 seconds
578 examples, 0 failures

api specs continue to have the reset_database method, but those will get
removed next.

Change-Id: I792ef9fa97bb31a1563457606c897ec2c5b3400d
move spec setting of quota mgr to always be blind

We need to do it here so that it takes affect for before(:each) and
before(:all) blocks.  We always want it off anyway.

Change-Id: Iccd5cafb823fb9fd59b835cc0bfc57ea6e74dd43
remove reset_db from common api tests

bundle exec rake spec SPEC=spec/api/organization_spec.rb

Before:
Finished in 59.72 seconds

After:
Finished in 28.78 seconds

Change-Id: I290bb5212ba652ff17f1d144a4f8e96afd4f5542
remove reset_db from permission tests

bundle exec rake spec SPEC=spec/api/organization_spec.rb

Before:
Finished in 28.78 seconds

After:
Finished in 22.59 seconds

Change-Id: I196caa4e195579519c3eaafc41394d7efeaea546
remove reset_database from legacy_apps_spec

bundle exec rake spec SPEC=spec/api/legacy_apps_spec.rb

Before:
Finished in 16.69 seconds

After:
Finished in 2.72 seconds

Change-Id: I535a30cfeb9119430c429982add2692ba806e55e
remove reset_db from legacy_bulk before :each

bundle exec rake spec SPEC=spec/api/legacy_bulk_spec.rb SPEC_OPTS="--fail-fast"

Before:
Finished in 2.68 seconds

After:
Finished in 0.48154 seconds

Change-Id: Ibb2b67334fa95172cac794d901d7808f8fc39505
remove reset_db from legacy info

bundle exec rake spec SPEC=spec/api/legacy_info_spec.rb

Before:
Finished in 11.36 seconds

After:
Finished in 1.15 seconds

Change-Id: Ib2b83d8f0dee5198124d579fc5f0de708fbe9e9d
speedup collection tests

bundle exec rake spec SPEC=spec/api/organization_spec.rb

Before:
Finished in 21.57 seconds

After:
Finished in 9.36 seconds

Change-Id: I65ac3bfbc56fb95a62018edcc2fc50f25784d656