Rename joinChannels() to joinConfiguredChannels().
Introduce and use helper functions for joining and parting channels.
Allow calls to the channel/admin variable functions to delay file writes.
Track the state of channels.