Rough replicamgr
Commit to pull igor's changes
added some command line options for sdaemon.