WL#518: Binary logs transaction IDs, Flush before commit

Status: Un-Assigned   —   Priority: Medium

In order to guarantie correct binary log state for systems which need corectness
we should do the followings

1) Add transaction IDs to COMMIT/AUTOCOMMIT=1 messages in BINARY log
2) Add possibility to do fsync/fflush binary log at transaction commit to be
done before INNODB transaction commit. So there would ne no chance transactions
are lost in binary log.
3) At recovery stage INNODB should have an option to cut not commited
transaction from the end of binary log.