restructured to support replication net-server in addition to app http server; extended rpc api with .sync