Cleanup caching of namespace information

Namespace information is backend-specific, not mailbox-specific, so
that's the best place to cache.

Merge defaultNamespace() into getNamespace().

Extend the base imap client's getNamespaces() instead of creating
entirely separate method.