Fix DB contact_field_value.contact_id type
Added documentation about session cleaning cronjob
Added messages permissions flags