Updated for Cordova 2.8.0
Added support for partial wake lock