let's put this under revision control before i poke at it some more.
btsync-watchdog move cases to functions, add silent 'cron' option