Add plugman support for iOS

As we needed plugman support for all our external plugins in a phonegap 3.1+ app, I quickly made the changes to support it for iOS. The Android version will hopefully be finished in the next couple of weeks as soon as we need it internally.