tutorial from http://www.raywenderlich.com/32963/apple-push-notification-services-in-ios-6-tutorial-part-2