Revert "Merge pull request #375 from NielsZeilemaker/dispersy_fix"

This reverts commit 35f30a9751c4f3741f08f055e7cc5a5ae009378d, reversing
changes made to ae1849f09b1cd5e5f59a70da03df50f8d762c430.
Revert "Merge pull request #368 from LipuFei/db-refactory"

This reverts commit 9ff956dfadcfdd6c1714b90a1ef3394d002a6b85, reversing
changes made to 4169b5791771ba310d3c7d09a40c213bbadeea74.
Updated dispersy ref
getPeerID fix
Wrapping TorrentDef.load with a try except which catches ValueErrors
Fix for RuntimeError during upgrade
Reverting back to except Exception
import pickle
Merge pull request #378 from NielsZeilemaker/revert_db

Revert db changes