Replace Count{Leading,Trailing}Zeros_{32,64} with count{Leading,Trailing}Zeros.
Add some safety checks in a couple of SourceManager functions.

This is to address crash in rdar://13932308
[libclang] Add logging for clang_createTranslationUnit.
Update countTrailingZeros function usage to match llvm's r182667.