Merge pull request #529 from bradfitz/leaks

Fix test-only goroutine leaks; add leak checker to end2end tests.