New safety check and setters for device token in appDelegate and loginViewController. New getDeviceToken method in HTTPHelper