Update to fix licence dependencies
Removed unused fakeRestart func
Fix gnuflag rev
Merge pull request #325 from wallyworld/license-dependnecies

Update to fix licence dependencies

Update to fix licence dependencies
worker/instancepoller: update to HEAD of juju/ratelimit
cmd/jujud: retry upgrades on failure

Given that we currently have no way of rolling back upgrades it's
worth retrying upgrades in case of transient errors. Logging around
upgrades has been improved a bit as well.

Future changes will improve the handling of upgrade error reporting
further (via agent status).
Merge pull request #322 from mjs/retry-upgrade-steps

cmd/jujud: retry upgrades on failure

Given that we currently have no way of rolling back upgrades it's worth retrying upgrades in case of transient errors. Logging around upgrades has been improved a bit as well.

Future changes will improve the handling of upgrade error reporting further (via agent status).
Ports document now used to store opened ports for machine/network tuple.
Merge pull request #239 from tasdomas/port-ranges-ports-doc

Ports document now used to store opened ports for machine/network tuple.

This patch is the beginning of a solution for #1216644 . 

To implement this, a new openedPorts collection is introduced, with a ports document for each machine and network (only the "juju-public" network is supported at the moment).

Any existing port entries in the unit document are migrated to the ports document. New ports are still appended to the ports list in the unit document - this functionality will be removed when the firewaller is updated to watch the openedPorts collection.
Fixed lp:1343219
Merge pull request #327 from dimitern/lp-1343219-networker

Fixed lp:1343219

Networker will refuse to start when /etc/network/interfaces
file is missing, as it can't do its job. Added tests and
live tested with the local provider.
Corrected dependencies.tsv to juju/gojsonschema etc
Merge pull request #329 from binary132/gojsonschema-fixes

Corrected dependencies.tsv to juju/gojsonschema etc

Updated gojsonschema and charm deps.
-fixs typo
Merge pull request #330 from davecheney/142-update-juju-ratelimit

worker/instancepoller: update to HEAD of juju/ratelimit
Pass net.Listener into apiserver.NewServer

The dummy provider will soon be changed to
create a net.Listener with an ephemeral port,
and then later use this Listener in its
embedded apiserver.Server.

In this PR, we change apiserver.NewServer
to accept a Listener, as opposed to creating
one internally. This also opens the door to
testing without a TCP-based listener (e.g.
using a mock listener than returns in-memory
net.Conns created with net.Pipe).

This PR also records the ephemeral port as
api-port in the dummy provider's environment
config; this will be used in a future change
to use api-port as the basis of computing the
API server addresses.
Update dependencies to pull in new repos with licensing fixed
Merge pull request #331 from axw/apiserver-inject-listener

Pass net.Listener into apiserver.NewServer

The dummy provider will soon be changed to
create a net.Listener with an ephemeral port,
and then later use this Listener in its
embedded apiserver.Server.

In this PR, we change apiserver.NewServer
to accept a Listener, as opposed to creating
one internally. We record the ephemeral port
as api-port in the dummy provider's environment
config; this will be used in a future change
to use api-port as the basis of computing the
API server addresses, as we do in normal operation.

This change also opens the door to testing without
a TCP-based listener (e.g. using a mock listener
than returns in-memory net.Conns created with
net.Pipe).
Change Environ.StateInfo to StateServerInstances

Provider implementations should not have to know
about API or Mongo connection details; this should
be provider-independent. Thus, the StateInfo method
of Environ has been replaced with a method that
returns the set of known state server instances.

Ideally the provider would not need to know about
tracking "state servers" either, but rather have
a means of identifying instances with a tag specified
by Juju.

The local, dummy and manual provider
StateServerInstances methods are updated to return
the trivially known instance IDs without consulting
cloud storage. The other providers have been left
alone, and will be dealt with in future PRs.

This is both abstraction cleanup and a requirement
for moving away from requiring cloud storage. Future
changes will update individual providers to break
the dependency on cloud storage, e.g. by using
instance tagging. This involves updating each provider's
StateServerInstances, as well as changing how Juju
checks if an environment is already bootstrapped.
Merge pull request #332 from wallyworld/more-licence-fixes

Update dependencies to pull in new repos with licensing fixed

This is required for compliance with the licensing rules to allow Juju to be included in trusty