Implement astring support in IMAP scanner

IMAP specifies the astring as either a string or an atom, and it's
needed to parse certain response types. Add support for it to the
scanner.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>