Made input-file-read errors slightly prettier.
Reduced callback nesting by using promised-io.