API improvements.
Fix contact loading and saving.
Work in progress for message, message channel and message info.