Convert binary Write()'s to PutUint64()'s.

PutUint64 is faster than a generic binary write, and also removes
the 'bytes' package from the import list.
Use NewReader instead of NewBuffer.

NewReader is slightly faster, but more importantly, ensures that the
data is read-only.