Feature/issue 35 phonegap security