If we have a replica set, set write-majority
Test that write-majority is not set when there's no replica set
Test setting of WMode
utils: remove most of it and use juju/utils instead.

utils/ssh and utils/syslog remain in core pending removal of their
core dependencies.

This is a mechanical change.
Set J:true unconditionally for the mongo session
add juju/utils dependency
Merge remote-tracking branch 'origin/master' into 002-move-utils
fix up imports after merge
Merge branch 'master' of https://github.com/juju/juju into write-majority
delete testing/filetesting; use github.com/testing/filetesting instead
Use github.com/juju/names package

Also remove unnecessary usage of errors package when fmt was already imported.
Fix test imports
Update dependencies.tsv
fix imports test
Merge branch 'master' of https://github.com/juju/juju into 102-remove-juju-names

Conflicts:
	provider/dummy/environs.go
	state/environ.go
	state/networkinterfaces.go
	state/networks.go
	state/relation.go
	state/relationunit.go
Merge pull request #34 from davecheney/102-remove-juju-names

Also remove unnecessary usage of errors package when fmt was already imported.
Merge remote-tracking branch 'origin/master' into 002-move-utils

Conflicts:
	dependencies.tsv
gofmt
fix dependency tests
Start using networks constraints for deployments:
- "juju deploy" uses --networks=net1,net2 argument to specify
  requested networks (required to be enabled), while "softer"
  requrements only for instance selection can be given with
  --constraints networks=net2,^net3 (positive and negative)
- updated help topics
- changed MachineConfig to only have Networks (to include)
- changed RequestedNetworks in state for machines and services
  to have only a list of included networks
- changes in the MAAS provider to use both requested networks
  and network constraints for acquireNode
- provisioner API and worker uses requested networks as
  from a single slice, and ProvisioningInfo-related code was
  updated similarly
- juju status changed to show only requested networks as enabled
  and networks from constraints as disabled for a service
- fixes in lots of places (mostly tests)

There are a lot of changed files, but most of them are just
fixed tests and code using NewMachineConfig or AddService,
whose arguments have changed.