removed lots of things so that the code can depend on
bencode and bencode_rpc