Implement net.Error on timeout errors.

Fixes #10.
Cleanup issues reported by golint.