some refactoring and new features

- refactored code a bunch to simplify things
- added support for CKeditor, regular and inline mode
- made alert message translatable