Add interface to request the pid of the running instance.
Bringing the AddNewTorrentDialog to the front.
Some improvements of requesting pid of running instance code.