tests for log manager write order
fixed a division by zero error and enabled non-flush mode
Added log order scripts and more debug output
More debugging info
Changed the way blockbuffers are used after they fill up.

The blockbuffers that get full are now moved to the end of the list of blocks. This prevents messages being written to the disk in the wrong order.
Merge branch 'Z3' into log_manager_test
added state based block buffers to log manager
Merge branch 'Z3' into log_manager_test

Conflicts:
	server/modules/routing/readwritesplit/test/rwsplit.sh
Removed the debug tags from log entries in standard debug builds and added a special switch to the tests
Added the actual output of log entry tests to the testing log.
Merge pull request #43 from skysql/log_manager_test

Log manager tests and fixes