Move to DateTimeOffset where applicable

Some places that was using DateTime is now using DateTimeOffset.

Test cases are better flushed out.
Add FileRepositoryTest

Test methods are added as placeholders (failing) for things to consider
for the implementation of FileRepository class.