Update Gruntfile.js

Added phonegap tasks
Lots of fixes