autodetect bind_addr

If config.bind_addr is not supplied, detect public ip address and use as default value.  Update demo.c to not supply bind_addr (so that, by default, demo is public facing and not on-host only.)