RPC, GUI: allow assigning list of groups to resource

RPC:

- Changed method input from list of Groups to list of group's IDs.
- Updated method javadoc.

GUI:

- Use one call to assign list of groups to resource.