Added Phonegap permissions.
Added the media plug-in.