Refactored to use docker-api gem.
Revert "removed checks preventing custom environments"

This reverts commit a94246740e77111c373d4decaeaf72933da5340d.

Conflicts:
	bin/centurion
set the wrong values for registry username and password in bin/centurion