Added initial phonegap API.