Revised things to be entities.

Revised the prototype "thing" code.  It's still prototype code, though.