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.
Merge branch 'hotfix/3983'

Close #3983
PR #4019
Merge branch 'master' of git://github.com/antonycox/zf2 into antonycox-master
Cleaned up whitespace in PR #4019
Forward #4019
Merge branch 'antonycox-master' into develop