Reorg and encode

reorg the packages a little.
And add a proper bittorrent encoder. :-)