Fixed typo in the testfdw class.
Updated the Python 3.3 tests to reflect the new transaction hooks.
Updated the Python 2.7 tests to reflect the new transaction hooks.
The sub_commit/sub_rollback routines should be called only at the current depth.
Added tests for the savepoints hooks.
Some test cleanup.