add flask-cache
basic model for repo, ref and refquery