onionmasq java sided improvements
This MR cherry-picks the java-sided improvements of !275. Particularly this MR improves the app behavior if onionmasq is rapidly started and stopped (without pluggable transports enabled, that needs to be tackled separately):