Make "SELECT" a method

This allows me to override SELECT rather than trying to change every
single IMAP command that ever touches mailbox names.  I think this is
a whole lot saner, but I haven't actually looked at the code in weeks
so I'm not convinced it actually works... :).