Cover more race cases when managing the file cache file
Add functions to interact with file list cache
Update file_lists cache support for roots backend

This builds on the work Tom started, using common functions for reading
and writing the cache, and also switching the cache location.
Additionally, this commit also optimizes the file list cache by creating
separate cache files for each environment. The desired environment is in
the load already, so there is no need to walk the other environments to
get the desired file_list data.
Fix pylint violation
Merge pull request #9748 from terminalmage/2014.1

Add additional file_lists cache commits to 2014.1