Issue #322 - Update registering of push notifications so that they work properly on iOS 8.