establish xbahn connection and store on click context

def connect(self, ctx):

        """
        establish xbahn connection and store on click context
        """

        if hasattr(ctx,"conn") or "host" not in ctx.params:
            return

        ctx.conn = conn = connect(ctx.params["host"])
        lnk = link.Link()
        lnk.wire("main", receive=conn, send=conn)
        ctx.client = api.Client(link=lnk)
        ctx.widget = ClientWidget(ctx.client, "engineer")