Prepend EnvUUID to _id of each services doc.

Add an upgrade step, respective tests and a helper function to change
the _id field of each service doc from "id" to "envUUID:id".
Add apt_preferences file with bootcmd

The apt_preferences file must be written
before we run "apt-get upgrade", or the
pinning does not take effect on non-bootstrap
machines.

Fixes https://bugs.launchpad.net/juju-core/+bug/1370781
Tweak a test that assumed sort order.
Factory methods using tags for user parameters.
Limit adding and sending metrics to the collect-metrics hook.
Add tools datasource registration framework
Remove provider storage from tools search path

Also, register OpenStack keystone search path for tools.
Revert name change
Fix azure, local, maas provider
Fix ec2 tests
Fix dummy, joyent provider tests
Fix more tests
Fix tools tests

Now we upload tools to the default tools
location (as if we controlled the public
tools container), rather than to provider
storage.
Address review comments
Remove stray line
Several fixes to avoid building jujud in tests
Merge branch 'master' of https://github.com/juju/juju into envuuid-serviceid
Merge branch 'master' of https://github.com/juju/juju into envuuid-serviceid
More fixes after rebasing
Merge pull request #804 from axw/tools-metadata-no-provider-storage

Remove provider storage from tools search path

Also, register OpenStack keystone search path for tools
and fix getKeystoneImageSource so it doesn't error if
the service isn't defined in keystone.

To minimise the impact in the short term, I've added a
"DefaultToolsStorage" field to JujuConnSuite which is
an environs.Storage that overrides the default tools
location (i.e. streams.canonical.com/juju/tools). Tests
that previously uploaded tools to provider storage now
mostly use this.