Cordova infrastructure

Cordova 3.0+ looks mature enough to use now, so we will try it.