Remove system buildpacks

Remove tests associated with system buildpacks
Update #promise_stop to accept a kill flag

* this is to enable use during staging task teardown on timeout

Signed-off-by: Aram Price <aprice@pivotallabs.com>
Parenthesize all logging calls

* Also modernize hash syntax and reduce multi-line calls.

Signed-off-by: Aram Price <aprice@pivotallabs.com>
Remove staging timeout grace period

* Other post-staging operations on the container occur after the timeout,
so there should be no reason for this to differ from the staging timeout
implemented in the staging script that is run in the container.

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Initialize warden requests with parameters

Signed-off-by: Aram Price <aprice@pivotallabs.com>
Reorder for clarity

Signed-off-by: Aram Price <aprice@pivotallabs.com>
Remove unused code

Signed-off-by: Aram Price <aprice@pivotallabs.com>
Make #with_em private

Signed-off-by: Aram Price <aprice@pivotallabs.com>
Inline variables, normalize Warden calls

Signed-off-by: Aram Price <aprice@pivotallabs.com>
Stop setting up unused console port on container

Signed-off-by: Aram Price <aprice@pivotallabs.com>
Stop doing calculations in #synchronize'd call

Signed-off-by: Aram Price <aprice@pivotallabs.com>
Rename spec helper #em => #with_event_machine

Signed-off-by: Aram Price <aprice@pivotallabs.com>
Replace Timeout.timeout with event machine timer timeout

* Also add better error-case handling for Task#promise_stop

Signed-off-by: Matthew Sykes <matthew.sykes@gmail.com>
Add info about buildpack used to staging response.

The goal is to get information about the buildpack used for staging
(including detected admin buildpacks) back to the CC so it can be used
to populate app usage events.

Highlights:
* Add path of buildpack used for staging to staging_info.yml
* Refactor buildpack manager out of the staging workspace
  - Staging task creates and holds a reference to the buildpack manager
  - Buildpack manager passed to workspace prepare
  - Consolidated builpack ordering tests in buildpack manager
* Add methods to buildpack manager to return buildpack key or a system
  buildpack url from a path
* Return the buildpack url (system or custom) and the buildpack key in
  the staging complete message
Test cleanup and backfill for PR 114

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Buildpack url in staging response unnecessary

Pending changes to use bosh deployed admin buildpacks in place of
system buildpacks removes the need to pass system buildpack urls
back to the cloud controller.

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Extract admin_buildpack_paths method

Signed-off-by: Eric Malm <emalm@pivotallabs.com>
Merge branch 'removebuildpacks' of github.com:fraenkel/dea_ng

* Resolved some conflicts caused by changes from PR #114

Signed-off-by: Ruth Byers <rbyers@pivotallabs.com>

Conflicts:
	lib/dea/staging/buildpack_manager.rb
	lib/dea/staging/staging_task_workspace.rb
	spec/unit/staging/buildpack_manager_spec.rb
	spec/unit/staging/staging_task_workspace_spec.rb
Expose available_disk in stager advertisement
Add a way to wait for all parallel promises to complete

The problem doesn't appear until you start mixing threads (EM) and Fibers.