Replace gtop with psutil and fix some session handling.