Fix analyzer warnings.

CFURLCreate… returns an NSString with a refcount of 1.  So we need to __bridge to NSString and _transfer ownership to the caller.
Methods with NSError* need to return a value (nil == fail : See NSError *, !nil == success).