Refactoring binlog_player.

It should be ready to be used inside vttablet now.