Batch operation prototype initial commit.

Please note: this is a prototype implementation and still under active development. When it is reviewed, improved, and tested, this branch will be merged into master.