Separated torrent proto definition and implementation to prevent dependancy issues.