modify cloud-init scripts
change eth0 from dhcp to manual when bridging
lost .cfg extension for some config files
Added OS field to version.Binary, version.Current

This change allows us to cache the current OS we are running on, so we will not have to do a version.GetOSFromSeries(version.Current.Series) every time we need to get the operating system type
move cloudinit work to networker for MAAS
Change EnsureNotBootstrapped to use StateServerInstances

EnsureNotBootstrapped is modified to call StateServerInstances,
rather than LoadState directly. StateServerInstances is now
required to return ErrNotBootstrapped if there are no state
server instances.

The BootstrapState type and related functions have been moved
from environs/bootstrap into provider/common, which is where
it should have been before were it not for the layer violation.
Add tests for local/manual provider StateServerInstances
More identity checks and tests.
fix tests
Merge remote-tracking branch 'upstream/master' into 130-cloudinit-networker
Merge pull request #348 from klyachin/130-cloudinit-networker

Move network config from cloudinit to Networker

Move networks out of cloudinit.MachineConfig once we have a Networker worker.

This was fully tested on MAAS environment. The 'Disabled' field indicated non-requested networks for deployed service is stored now in the state and passed through API.
Merge pull request #342 from axw/ensurenotbootstrapped-stateserverinstances

Change EnsureNotBootstrapped to use StateServerInstances

EnsureNotBootstrapped is modified to call StateServerInstances,
rather than LoadState directly. StateServerInstances is now
required to return ErrNotBootstrapped if there are no state
server instances.

The BootstrapState type and related functions have been moved
from environs/bootstrap into provider/common, which is where
it should have been before were it not for the layer violation.
merge with current master
Merge pull request #328 from gabriel-samfira/add-os-field

Added OS field to version.Binary, version.Current

This change allows us to cache the current OS we are running on, so we will not have to do a version.GetOSFromSeries(version.Current.Series) every time we need to get the operating system type
fix strings in tests
Action params now validated at the worker/uniter level

Before the Action is run as a hook on the unit, its passed params are
validated against actions.yaml.  If the validation fails, no error is
produced but the hook will log an error and fail.
Addressed concerns for PR 311
Merge pull request #255 from klyachin/126-maas-bridge

WIP: Modify cloudinit script for MAAS provider

This PR modifies cloudinit upstart scripts, so that network configuration files in MAAS environment has the same structure as in the other environments.

Current configuration:
/etc/network/interfaces:
...
auto eth0
source /etc/network/eth0.config

/etc/network/eth0.config:
iface eth0 inet manual
auto br0
iface br0 inet dhcp
  bridge_ports eth0

New configuration:
/etc/network/interfaces:
...
source /etc/network/interfaces.d/*.cfg

/etc/network/interfaces.d/eth0.cfg:
auto eth0
iface eth0 inet manual

/etc/network/interfaces.d/br0.cfg:
auto br0
iface br0 inet dhcp
Merge pull request #311 from binary132/actions-runhook-validate

Action params now validated at the worker/uniter level

Before the Action is run as a hook on the unit, its passed params are
validated against actions.yaml.  If the validation fails, no error is
produced but the hook will log an error and fail.
Updates following review.