Factored out zeroconf functionality to own unit
Bugfix: Added guards against double termination
Bugfix: importing 'ers' started a peer monitor

This has been changed so that the peer monitor is only started when it
is first used.
First commit for the ERS daemon
Merge branch 'develop' of https://github.com/ers-devs/ers into feature/ers-daemon

Conflicts:
	ers-local/ers/ers.py
	ers-local/ers/peer_monitor.py
Updated zeroconf.py so as to use standard Avahi calls.

This fixes some multithreading bugs and makes for more elegant code.
Unfortunately, it means ERS no longer works on Mac. Tough.
Minor bugfixes for zeroconf.py
Removed direct usage of zeroconf in ers.py
Updated daemon to use new zeroconf.
Connect to DB in daemon
Added "state" design document
Daemon can now initialize the CouchDB database
Updated couchstart and couchstop scripts
Bugfix: wait for CouchDB to start before running daemon
Removed commented-out code
Daemon: communicate active peers to ERS library through CouchDB
Wait more intelligently for CouchDB to start
Daemon: Automatically set up replication.

Contrib vs. bridge, etc. rules are not yet enforced.
Merge branch 'develop' of https://github.com/ers-devs/ers into feature/ers-daemon
Merge branch 'feature/ers-daemon' into develop