updated controllers for gcm and apn notifications.