Actually read files!

This adds support for actually reading files. Upon the open() call the files
are fetched from apn if they aren't in the local cache already.
Reading from files actually reads from the local cache.