[iOS] powermanager updated for latest cordova

updated powermanager iOS plugin to work with latest cordova 2.1.0

Previous version didn't seem to work, now using cordova.addConstructor.

plus: clean trailing spaces, missing semicolons, idiomaticjs style, safer check on window.plugins