Move colour definitions to appropriate class.
Clean up json endpoint.
Code review changes.
Update README with API changes.