Update schema to handle arbitrary metadata, and agent/sensor definition.