performance fixes in WriteToLog
Merge branch 'master' of https://github.com/ayende/temp.raven.storage