Added info_hash generation. Added test code for http connection.