basic phonegap build

http://docs.phonegap.com/en/1.5.0/guide_getting-started_android_index.md.html

and some other tweaks related to phonegap 2.7.0