Added higher-level abstraction over files using fileService.

cbugg: close bug-363