Allow passing reply function to restart, start, stop commands

If provided, status messages will be passed to this function instead of
printed.