Changes for crodova 3.0

Updates based mostly on:
http://simonmacdonald.blogspot.fr/2013/06/why-dont-my-plugins-work-in-phonegap.html