[IMAPx] Use case-insensitive compares and hash table functions

Almost all attributes, responses and commands in general are
case-insensitive in IMAPx, thus even the code can "normalize"
the respective strings to proper case, it's safer to use
case-insensitive compares and equal-functions in hash tables
where applicable.