Refactor writing peers & IPv6 Compact support. Closes #14.