[WIP] entity tags support, including REST API (but not GUI)

structure is about right but tests not yet passing.  for review only.
many methods in this class will need that.