Updated commit method to reset autocommit to true for the adapter.
Updated the order of events to update the inTransaction property first then to reset the connection autocommit option to true.
Added autocommit = true to rollback method.
PR #4019 Merge branch 'master' of git://github.com/antonycox/zf2 into antonycox-master
Cleaned up whitespace in PR #4019