base: File API

Missing:

* Binary files
* File removals
* Unit tests
* Docs as docbook, fix typos etc
Do we need both of these forms? What about just supporting options.syntax?