Fix and simplify upgrade.py
Exit the waiting loop even if the upgrader failed, assert if it did.
Fix migration (typo)
add timeout callback for libtorrent metainfo retrieval
fix unit tests
simplify RemoteTorrentHandler