Fix replication bugs that dropped some messages due to parsing
Add dyn_setting.h/c for controlling various setting via the admin port later.
Merge pull request #70 from timiblossom/replication_fix

Replication fix