Remove txn_id, use Engine as base class for engines.

This minimizes cutpaste at a small expense to runtime. txn_id parameter
is going to be replaced with Engine.search_for_update() type method (see
ticket #2).