Local torrent search and other misc fixes