Add Model class to api/v1

Model objects have default id and cls attributes and will be
automatically encoded to JSON when returned from a resource controller.
Exclude some lines from coverage; add a comment