ll: add events and callback function for connection state
examples: add ll-connection-master example