#JC-1869 Make permission manager methods generic

Methods for getting branch, general and profile permissions are generic
for future adding plugins permissions
#JC-1869 Move plugins dependencies to dependency manager