mqtt: default to localhost mqtt broker
nake statements looks like real C
remove space a line ending
add unittest