IMAP: return BAD for invalid UID FETCH 0 command
IMAP: small cleanup
IMAP: include imaptest scripts

These all pass without errors.
See http://www.imapwiki.org/ImapTest for information
on how to use them.