Support loading JSON formatted compilation databases

Fixes #111