Add compdb tool

This tool helps convert Ninja build files to a compilation database
of the form used by Clang tooling.
Merge pull request #512 from pcc/compilation-database

Add compdb tool