use more meaningful variable names in RawServer
remove legacy swift stuff
remove unused function get_def_type()
fix some deprecated code
use TorrentDef.get_infohash() instead of get_id()
remove unused get_id()
Merge pull request #1012 from LipuFei/some_cleanup

Some cleanup