factor out decorators, move formatttime to stringutils since it doesnt have many deps, and move from global state to attaching the client to the flask app
factor out decorators, move formatttime to stringutils since it doesnt have many deps, and move from global state to attaching the client to the flask app

oss/shrunk,oss/shrunk,oss/shrunk,oss/shrunk,oss/shrunk