Cache class timeout expiry and GithubManager green thread

- Added green threads for fetching the template
- Added cache expiry time to cache class
- GitHubManager unit tests are failing. That still needs to be fixed