Refactored build to work with maven
Refactored phonegap build to work with maven