Add proper write ahead log infrastructure.  Need to test.
Commit all changes for final thesis