Fixed incorrect timeout in worker test

In PR #366 a timeout was unintentionally changed from LongWait to
ShortWait. This PR fixes that.

See also: https://github.com/juju/juju/pull/366#discussion_r15334468
Merge pull request #406 from mjs/worker-environ_test-wait-fix

Fixed incorrect timeout in worker test

In PR #366 a timeout in a test was unintentionally changed from LongWait to ShortWait. This PR fixes that.

See also: https://github.com/juju/juju/pull/366#discussion_r15334468
network: change SortHostPorts to maintain order of same-type addresses

HostPorts are meant to kept in their original order.
Change SortHostPorts to swap hostnames and to the fore
and give preference to either IPv4 or IPv6, but otherwise
keep the order within address type groups the same.
Remove SortHostPorts call from state.SetAPIHostPorts

Move the logic from state into the peergrouper. I'm
not sure why we're sorting the values before adding
them to state at all, but the logic should be kept
outside at any rate.
Merge pull request #394 from axw/lp1345832-stable-sorthostports

Remove SortHostPorts call from state.SetAPIHostPorts

**state, worker/peergrouper:**

Move the logic from state into the peergrouper. I'm not sure why we're
sorting the values before adding them to state at all, but the logic should
be kept outside at any rate.

**network: change SortHostPorts to maintain order of same-type addresses**

HostPorts are meant to kept in their original order. Change SortHostPorts
to swap hostnames and to the fore and give preference to either IPv4 or
IPv6, but otherwise keep the order within address type groups the same.

Fixes https://bugs.launchpad.net/juju-core/+bug/1345832
Update to gopkg.in/mgo.v2 repository

labix.org/v2/mgo is no longer maintained.
Removed unused taggedAuthenticator interface
Update tests to match mgo's new behaviour
Merge pull request #408 from davecheney/158-lets-have-less-copies-of-the-tagged-authenticator-interface

Removed unused taggedAuthenticator interface
Merge pull request #409 from axw/update-mgo-gopkgin

Update to gopkg.in/mgo.v2 repository

labix.org/v2/mgo is no longer maintained.
Add windows userdata
more userdata work

* removed Render function
* added windows to supported series
Separate configure in types per OS
Fixed maas provider
fixed import
removed old functions
fixed logdir
Fixed tests