nullpath, consistent error from session, general refactor

cleaner handling of logging when path is null. consistent error values when get_session errs. dav_flush was calling dav_fsync; split. dav_create was calling dav_chmod; split. divers