integrate the Settings mechanism for tinymce_init

upgrading AASM to version 4 and fix the places where it is used