Add "type" to all JSON outputs
Similar to json-api.org spec.
example:
// GET /instances/instance-name/sources/source-name
{
type: "source",
...
}
Including a type allows us to do things like POST the contents of a source
and act on that webhook request without needing further clarification in the webhook class about what the object is.
In general, this helps to make the objects more atomic -- so that they can cleanly maintain their original type, even if their JSON is displaced to somewhere else.
Edited by Travis