Add addition file_lists cache commits to 2014.1

**NOTE: THIS PULL REQUEST IS AGAINST 2014.1**

This pull adds Tom's commit from Monday night, as well as two of the commits from #9747. I'll need to open up a separate pull against 2014.1 to backport this feature, since the pygit2 stuff in develop is being held off until the Helium release.