Fix up to work as a Corodova 3 plugin.

New directory structure and API changes on the JS/Obj-C border.