De-callback in favor of promises in the file APIs. Fixes #139