Update projectdb to write projects to JSON files. Update unit tests
and data.
Add comments for godoc.
Clean up documentation comments.
Convert to new JSON format from server.