Initial changes for WAL.

Integrated WAL with BucketManager.
Why do we need this? This is copy + rename.