Add CFWrapper, a unique_ptr like interface to Core Foundation objects.

Adapt CocoaScanner and SourceRules to use CFWrapper.