selectable.html: listen to onUnjoined event to remove entry from combo list

Change-Id: Ica6a184576ba8061ba8b31e6f775187a18b188ff
selectable.html: manage onbeforeunload to terminate connection

Change-Id: Ia0b82517e53b7036ad8ba1641cd4d1b0830f8563