db_t should track types
Rework proposed YAML dump format

The dump format is for clients consumption, and should contain the
current status of monitored states, including things like `last seen`
and whether the result is stale or not.