Fix failed transaction status id

• Was 'F', now it's correctly 'E'
Send 'sync' after basic queries
Savepoint conformance

• Escape savepoint identifiers
• Allow releasing savepoints after commit; the Java object that is
• Migrated unit tests from original project