Json schema

Dodgy first version of the timestream ui JSON objects. Don't write any code that relies on these being exactly as they are.