[pyramid,predicate] add has_permission view predicate.
"has_permission" route predicate was added in previous patch, in this patch, we reuse most of the route predicate to create a view predicate.
This will allow to define several views for a single route, but with different features depending on the user permissions.
For instance, if the user have the right to edit the entity, we can add a little box with edition options.