Fixes to get batch writing stuff working. Added snapshotting code + some minor Rakfile changes