type resource build

built and tested the Type resource endpoint and
data model. added lots of methods to the data
model to do the checking work for types
relatively simple get/put methods but elegant handling
of most situations. not implementing POST