Add filter for permissions

We need ability to filter permissions based on privileges.
Support for 'admin', 'pull' and 'push' is added.
Merge pull request #279 from BanzaiMan/dev/hasari/filter_permissions

Add filter for permissions