P2pProxy plugin: some refactoring and optimizations
Adjust timeout for VLC spawn