Added iOS 7 support.

Added support for iOS 7 push notifications based on solution by
@cannyboy.