Implement a writer goroutine and synchronize writes
Merge remote-tracking branch 'origin/master' into writer

Conflicts:
	peer.go