Small refactoring
Fix ping
Merge branch 'master' of ssh://github.com/osmandapp/Osmand