Refactoring of txn_cursor.h/.cc, no functional changes
Refactoring of btree*, no functional changes