Retrieve a folder list from IMAP/GMail

This contains the code to both fetch a folder list from a proper IMAP
server as well as the code to map GMail's nasty IMAP hard-coded folder
names into something that MHng will understand (ie, the canonical MHng
format).