(core) change host -> url in MQTT options

This way, puserse can specify "tls" instead of "tcp" to establish a
secure connection.