iOS 8.x

In case you need some help getting this ready for iOS 8.x...This seems to work correctly on my iPad 4th gen running iOS 8.1. Some of the code could probably be written better but I think the only thing I missed is the "Ignore power-down screen" sections because "isOrderedFront" no longer exists in iOS 8.x.