Light-weight Transactions support.

* refactored to support single-stmt and multi-stmt modes.
* introduce separate transaction index.
* log writer refactored for propper support of batch writes.
* cursors refactored to support transactional index.
* constraints introduced on using cursors in the modes.
* added tests for transactions usage, consistency and recover.