Adding base app ID bug fix from SalesforceCommonUtils

This contains a patch to the base app ID generation done in SalesforceCommonUtils, where sometimes the base app ID would not be properly persisted to the keychain on iOS 7.