Initial code for performance tests.
Added support for async writes for the File store. Fixed some small performance issues.
Merge remote-tracking branch 'upstream/master'