imapc: Initial support for automatically reconnecting to remote server.
Moved imapc-client into its own lib-imap-client library.