Scala implementation of a bittorent client