Fix bug #1333098. Concurrent access to the objectCache needs to be protected by a mutex.

While there, I discovered a difference race condition in the api Watcher code.
So I fixed that in passing.

The new test fails if you run under '-race', and the tests in cmd/jujud/*TestMachineAgentRsyslog* used
to fail with the race detector and now pass.
make the WaitGroup a local var, which leaves the tests passing, and avoids the possible race condition.
provider/azure: simplify role size selection, report hardware, fix costs

- Use the newly exported environs/instances.MatchingInstanceTypes
  to simplify instance type selection when force-image-name is used.
- Update role costs and role sizes (bump gwacl rev).
- Emit hardware characteristics by converting gwacl.RoleSize to
  instance.HardwareCharacteristics.

Fixes https://bugs.launchpad.net/juju-core/+bug/1215177
Merge pull request #152 from axw/azure-instance-types-update

provider/azure: simplify role size selection, report hardware, fix costs

- Use the newly exported environs/instances.MatchingInstanceTypes
  to simplify instance type selection when force-image-name is used.
- Update role costs and role sizes (bump gwacl rev).
- Emit hardware characteristics by converting gwacl.RoleSize to
  instance.HardwareCharacteristics.

Fixes https://bugs.launchpad.net/juju-core/+bug/1215177
Do not allow the peergrouper worker to publish empty/nil api server addresses
Merge pull request #153 from davecheney/112-state-life-takes-a-tag

api, apiserver: internal life methods now take a names.Tag
Merge pull request #155 from wallyworld/peergrouper-publish-ignore-empty

Do not allow the peergrouper worker to publish empty/nil api server addresses

This is an attempt to fix bug https://bugs.launchpad.net/juju-core/+bug/1333682

Something is writing empty api server addresses to state, which are then propagated to the machine agents, which then update the agent.conf file and boom, the apiaddresses entry is deleted. So I've disallowed the peergrouper worker from publishing empty addresses.
More string -> names.Tag work
Merge pull request #146 from jameinel/api-concurrent-caching-1333098

Fix bug #1333098. Concurrent access to the objectCache needs to be protected.

We add a Mutex around the objectCache map.

While there, I discovered a difference race condition in the api Watcher code.
So I fixed that in passing.

The new test fails if you run under '-race', and the tests in cmd/jujud/*TestMachineAgentRsyslog* used
to fail with the race detector and now pass.
Merge branch 'master' of https://github.com/juju/juju into 114-state-accessors-take-tags
Merge branch '115-state-string-tags' into 114-state-accessors-take-tags
Use concrete types rather than names.Tag interface