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".
Fix the panic when no running environment.
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 pull request #806 from howbazaar/fix-status-on-non-running-env

Fix the panic when no running environment.
Merge branch 'master' of https://github.com/juju/juju into envuuid-serviceid
Merge branch 'master' of https://github.com/juju/juju into envuuid-serviceid