Three bugfixes

Depends on: https://github.com/Tribler/dispersy/pull/97 (has been merged)