fixed code style errors.

Refactored MySQL Storage Manager getNextRecords() method.
Refactored binlog parser.