Initial changes for WAL.

Integrated WAL with BucketManager.