Improve channel configuration handling

Add new channels to the configuration immediately after a join is
requested.  Remove the channel again if any of the various
numerics indicating channel join failure is received.