Minor changes in tests
Redirect logs during testing
Add Wait function in agent client. Refactor tests.
Merge pull request #84 from soundcloud/integration-tests-fixes

Add Wait method in client api and fix integration tests
Fixes several issues with integration tests.

* Ports and URLs used in tests are now passed from the test harness into the tests.
* The sheduler is now started with an explicit port assignment.
* The temporary rootfs from the previous run is now cleaned if it is present.
* The harness now waits until the scheduler starts responding before it launches the scheduler tests.
Stopped and running containers are now recovered upon restart rather than being killed.

Stopped containers show up in state 'created'.
Now tracks static and dynamic port allocations.

Ports are allocated for each instance created as an atomic unit.  If any
allocation fails then instance creation fails.  This is also true for
instance recovery upon restart.

Closes #89. Fixes #57. Fixes #59.
Add restart policy in container configuration
Add _total suffix to counter metrics
Address Julius' comments
Minor change
Format error message
Merge pull request #96 from soundcloud/update-metrics

Update metrics to match conventions expected by prometheus
Expose the container process state
Merge pull request #97 from soundcloud/supervisor-state

Expose the container process state
Refactored build script to play better with external harnesses.
Merge pull request #93 from soundcloud/restart-policy

Add restart policy in container configuration
Specifying the history parameter now works for tailed logs.

Fixes #56.  Closes #92.
Added version flag based on build tooling.
Review changes.