log replication working much better, lots of eventmachine tweaks