Change from using UUID to the device's identifier since UUID is deprecated in iOS 7.
Fix misc warnings