Implemented bulk assign perm for users, groups.

I have implemented the bulk_assign_perm, wish feedback to upstream. working on bulk_remove_perm.