Revise connection/buffer removal

Replace the current buffer with prev/next & open the connect dialog
when the last connection is removed.
Restore 08239ad184bb7fb5e1dc0d45e2b433a68ef2c70c

The change went missing during the side panels refactor
Open NickDialog when nick is reserved