Replace post filter by filtered query
Clean dependencies
Add test for permission string serialization