Added support for custom sync strings in the daemon. It is implemented by a closure

Signed-off-by: Bert Hajee <hajee@moretIA.com>