move test resources to ./test
add GenBinlogEventBytes and RotateRelayLog