Import of Apple's LocateMe demo that works with SDKs earlier than iOS 8