Update Permission entity

Update Permission entity as it is a read only entity, also update its
fields.
Add search functionality to the Permission entity.
Add tests for all touched areas.
I done this way to make clear with fields are searchable. This is the move towards the search mixin, we will need some meta info here.