Fix talk.go bugs and make more automatic.
Merge pull request #8 from bradfitz/master

Fix talk.go bugs and make more automatic.