Closes OpenSourceFieldlinguistics/FieldDB#987  — Adding support to check for already-existing directories and files. Changing synchronous file system calls to nested asynchronous, and adding more console log output for error tracing.