Added write batch facility to the engine implementations and started engine_test for handling unittests common to the two engine implementations.

Test Plan: go test

Reviewers: bdarnell, andybons, Tobias

Reviewed By: Tobias

Differential Revision: http://phabricator.cockroachdb.org/D82