Abstract charm relations into a separate thread

juju doesn't provide a way to pre-emptively set services that will be
related whether the related charm exists or not. This creates a thread
that just goes through a list of charms to be related and will run
until those relations complete.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Pulling latest command output changes into this feature branch
Better error handling for charms not ready to relate

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
better error handling for additional set relations in compute

set_relations() was attempting to relate rabbitmq-server to nova-compute.
There was no interface for that so an exception was being thrown. This
change fixes that exception and provides a more reliable way to relate
rabbitmq-server:amqp to nova-compute:amqp which is the proper requirement
for those services.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
ugh pep8

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Add command line flag to enable swift by default

The cloud-install shell scripts takes '-s' flag in order to enable swift from
installation. However, cloud-status takes '--enable-swift' if cloud-status
is invoked directly. It would be best to keep those flags similar, however,
the shell interpreter is limited w.r.t. getopts parsing.

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
rename variable to be a little more obvious on its intentions

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Merge pull request #56 from battlemidget/feature-charm-queue-1

Abstract charm relations into a separate thread
Change services to service variable

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Merge pull request #58 from battlemidget/patch-fix-exception-for-nonexistent-charm

better error handling for additional set relations in compute
Merge pull request #59 from battlemidget/feature-support-swift-enable-via-cli-flags

Add command line flag to enable swift by default
Better error handling if unable to connect to juju

Signed-off-by: Adam Stokes <adam.stokes@ubuntu.com>
Merge pull request #60 from battlemidget/patch-fix-exception-with-no-bootstrap

Better error handling if unable to connect to juju