define fields for all resource types
(WIP) refactor fields to be more pythonic, better verification

TODO:
 * implement patch as an Entity in prod too
 * rename all resource type classes to something simpler (s/ResourceType$//)
 * docs, esp around ResourceTypes
 * think about how to handle dbdicts
 * pyflakes
 * no PR until it's clear that this works for filtering