Copy over torrentrecord class from master branch.