Added tests for hookCommand
Slight changes based on feedback

* defer restorer()
* slight change to error message checking
Add windows userdata support

* refactor cloudinit packages to include support for windows userdata
* fix NewMachineConfig to store corect paths when on windows
Added tests for windows userdata
Changes made based of feedback
Add windows userdata support

* refactor cloudinit packages to include support for windows userdata
* fix NewMachineConfig to store corect paths when on windows
remove global CloudInitOutputLog
Start switch to using api for machine upgrade after restore
Merge branch 'master' into backup-ssh
Use juju status to get machine address
Use tag rather than whole machine
added newmetrics function to testing factory
unique strings for makemetrics
Merge pull request #546 from mattyw/metric-factory

added newmetrics function to testing factory

Added a MakeMetric function to the testing factory
state/api/{keyupdater,networker}: use names.Tag

Use tags not strings on api methods.
Initial merge of 1.20 into master
corresponding changes to worker/
Merge pull request #548 from davecheney/182-state-api-use-tags

state/api/{keyupdater,networker}: use names.Tag

Use tags not strings on api methods.
Add extra logging
Update deps for utils package update