Some updates for ongoing Rust changes

* Switched to namespaced enums for Bencode
* Fixed deprecation warnings