add unified interface for accessing file system
fix Omer's minor comment
Merge pull request #1070 from dwightguth/file2

add unified interface for accessing file system
remove dependency-injected static state