Added support for producing clang compilation databases.

This is useful for using tools like ycmd.
Merge pull request #26 from abingham/clang_compilation_database

Added support for producing clang compilation databases.