Put all mail API functions in mail_client.
Merge pull request #6 from lujb/master

Now we can use same API to open/close pop3/imap4v1 session.