Add an initial code for BEP-9 common test.
Add listen_ip() as an optional parameter.
Improve logging.
Fix a bug in etorrent_dotdir:info_hash_to_hex/1.