Add json serialization to objects. Add buildings API.
Update .gitignore.