add support for broadcast addresses

use 255.255.255.255 as the default address
fix syncing if slave is ahead of master (i.e. the slave needs to skip backwards)