Add serializable state output based on cli code

Signed-off-by: Gökçen Eraslan <gokcen.eraslan@gmail.com>
Add setter for serialize_methods struct

Signed-off-by: Gökçen Eraslan <gokcen.eraslan@gmail.com>
Rename file callback struct

Signed-off-by: Gökçen Eraslan <gokcen.eraslan@gmail.com>
Add secret_chat_rekey option

Signed-off-by: Gökçen Eraslan <gokcen.eraslan@gmail.com>