Handful of cleanups, mostly around enums

Also adds a socket method (recv_into) and the beginnings of translations of
the zguide into Rust.