added support for locally storing auth tokens and downloaded docs.