Adapted project for PhoneGap 3.1.0

Rewrote the whole project (only for iOS at the moment) to use the CLI interface of PhoneGap 3.1.0. Boom.