Fix the failure message in the global config when imagecache is not available.
Fix crash on startup
Add channel number management functions