Factor abilities methods

in app controller, user model and services.
Merge pull request #8091 from cirosantilli/factor-ability-abilities

Factor abilities methods