Add unread/total_messages to CMaildir binding.
Replace 'CMessage *' with std::shared_ptr<CMessage>.

This is work towards exposing CMessage to Lua.