Add file api functions

This adds a couple of file functions. One for looking up files, another for getting a file's contents.