Added SELECT imap verb and some schema changes for imap compliance.