Fix torrent table upgrade
Merge pull request #11 from whirm/fix_torrent_table_upgrade

Fix torrent table upgrade
fix unit tests and add debugs
fix bugs
fix file not found in TFTP
add debug
remove torlock from LibtorrentMgr