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.
Merge pull request #153 from zlamalp/assign

RPC, GUI: allow assigning list of groups to resource