Properly escape pagination URLs

This ensures Cloud Controller generates pagination URLs that it can
later consume. Addressable::URI handles proper escaping of query string
values, in particular the semicolons used to separate filter conditions.

This effectively restores #111, which was erroneously reverted by #112.
Refactor a AppStopper which can be used in background jobs.

Inline methods in DeaClient

[#60026682]

Signed-off-by: Phan Le <ple@pivotallabs.com>
Start message bus in a thread so that the DelayedJob main thread does not starve EventMachine

Signed-off-by: Phan Le <ple@pivotallabs.com>
upgrade loggregator lib to version 2.0.1

* this has better error handling for unresolvable hostnames
update loggregator emitter lib

* correctly handle empty loggregator host
* correctly handle resolving hosts that have multiple ip addresses

Signed-off-by: Casey McTaggart <cmctaggart@pivotallabs.com>
Refactor migrations and background workers startup.

* Thinner Rake file
* spec_helper config now has :db component

[#60026682]

Signed-off-by: Phan Le <ple@pivotallabs.com>
Move db_encryption_key to the Encryptor

[#60026682]

Signed-off-by: Phan Le <ple@pivotallabs.com>
Rename configure in Config

Signed-off-by: Phan Le <ple@pivotallabs.com>
Rename MessageBus{Configurer,}::Configurer

Signed-off-by: Phan Le <ple@pivotallabs.com>
Rename methods in cloud_controller/runner to clear things up.

[finished #60026682]

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

Signed-off-by: Ruth Byers <rbyers@pivotallabs.com>
Remove 1.9.3 from travis matrix

Signed-off-by: Phan Le <ple@pivotallabs.com>
Add app_id to v1 bind request

[#61594496]
Removed query order dependency to fix intermittently failing test
Make spec match description

  * add converse case for completeness

Signed-off-by: Dave Liebreich <dliebreich@pivotallabs.com>
Add a test that would fail if a contents of API spec folder changed.

It would force us (developers) to re-consider if it is a API changes.

[#61063196]

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Update the audit record title

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Only show filtering request params for list requests

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Document async parameter only in requests that support it

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
fix regression bug where CC could not handle stop messages from HM9000