phonegap: add remote commands
phonegap: small refactoring in edit configuration