Refactored for github.com/3M3RY/go-cjdns
Merge branch 'bencode'