Implement folder index methods in FileRepository

This commit implements the parts of class FileRepository related to
folder index files.
Refactor MeasurementExtensions

Class MeasurementExtensions now use the methods available in class
DateTimeOffsetExtensions.

I am not too fond of the result.  The code in DateTimeOffsetExtensions
is definitely a leaky abstraction