Add SETLSN command to xlogs
Define new API and required data structures for new xlog search logic
Temporary commit
Add an unit test for log_dir_next() and fix bugs in this function