by karlp
Added credits
Add configurable retain flag (and qos=0)