* Introduced LocalRepoTransactionListener.
* Some code cleanup.