Use the log sync setting to decide whether to sync the directory on log file creation.
Let logging manage syncing the directory itself #1343
Add SLOT_SYNC_DIR to sync directory on both dsync and fsync. #1343
Fix loop conditions since it now includes SLOT_SYNC_DIR. #1343
Move directory sync code into os_fsync.c, only sync directories when creating files.
Merge branch 'develop' into directory-sync-log-files
Simplify the directory/file sync loop, clean up a few cases where we
were ignoring error returns.
Merge pull request #1348 from wiredtiger/directory-sync-log-files-loop

Simplify the directory/file sync loop
Initialize sync_dir_lsn to zero, not one. #1343
Keep an open file handle on the log directory. #1343
Fix error message. #1343
Remove debug verbose message.
ERR->RET
Move initialization of direct_io.
KNF
Merge branch 'develop' into directory-sync-log-files
Added java async tests that open many connections.  refs #1332.
Changed async test retres after EBUSY to use exponentially longer retries,
to guarantee successful runs.
Add typemaps so Java close cleanups occur after 'close' completes. refs #1332.
Some refactoring and simplification of close code.
KNF whitespace.
We use "read-only", not "readonly", remove "readonly" from the list of
spelling words.
Note that metadata cursors are read-only.