refactoring to make plugin comply with claroline alt-master branch, form ajaxification, functional crud