phonegap: move classes to packages
phonegap: delete useless code