refactor utils, model, and interface except thing.query

model changes

cleanup root level stuff

refactor thing.updates, but not queries