Implemented filesystem cache, one and only (see #1415)

Please run the http://cs.sensiolabs.org/ to fix CS, and only use 4 spaces for indenting, no tabs.