Refactor|FS|libcore: Added FileIndex as a separate class

The index of files was previously an internal part of FileSystem,
however now it is a class of its own to facilitate observable and
custom indices.