replace build.sh to Makefile, and show commit version in comfig.xml

1. update phonegap version to 3.1.0
2. update app version to 1.0.1