Make sure file entries are writable before writing. Fixes #50.
Converted file to use Manos, a miniature async library.
Restore retained files using Manos async instead of more complicated inline async flow.