Add JSON API for querying project information.

Fixes #8.