Json compilation database

Adds a new reporter for [JSON compilation databases](http://clang.llvm.org/docs/JSONCompilationDatabase.html) and corresponding feature tests.