Recover from missing doc
Check if cache is up to date
Added support for OAuth
Added OS specific temp dir