More files

More work on the files system. Fixed two bugs - one for returning a Future from a methods that has more then one return value. And another for not properly typing the result's fields in that case. Also added some more stubs to the sample app to exercise the file APIs.

One more CL to follow, and we should have pretty complete file access.