* Use random ports for pre-packaged Tor daemon * fix unit tests * configurable random ports * shutdown hook