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.
Because search is handled different for each entity, take a look on Activation Key, it has a search parameter that could be specified. But for Permission all fields (name, resource_type) excluding id which have its own url is searchable