use require.Nil where appropriate
gofmt
use io.ReadFull when reading a response from the namenode

This prevents partial reads, which can cause malformed (but correct-looking)
messages to be parsed out.