implemented the default sender
updates for latest version of trunk
syslog: fixes and updates to rsyslogd and logrotate.
Adjust lograte size to prevent a mismatch.
Change rsyslogd size to be actual size instead of a naive value.
some changes after reviewing
start the workers when we start
utils/syslog: updating comments for logrotate config
start the metrics workers; the metricsmanager should rely on a machine agent connection

sensible periods for the metric workers
fixes from review
added tests for the default sender
moved metricsender to apiserver
only an environment manager can access the metrics api
added a machiner test and vars for cleanup and sender periods
upgrades: move storage migration steps to 121a2
Move responsibility for provider-state to providers
provider/common: add tests for provider-state functions
Clean up around --keep-broken, add test to openstack
bug fix in worker test
Save most of the metadata in the archive file.
Align metricsDoc.EnvUUID serialization.

Follow the multi-environment document convention of serializing EnvUUID
as "env-uuid".
provider/ec2: set UploadArches for tests

Ensure we upload AMD64 tools in tests,
regardless of host architecture.

Fixes https://bugs.launchpad.net/juju-core/+bug/1372961