Add JSON API for querying project information.

Fixes #8.
Merge pull request #9 from mvitz/json-api

Add JSON API for querying project information.