all: move examples into package *_test.

Fixes issue 5677.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/11992043