[API] new ApiLayer.getGroup() method

Allows developers to get the group with the highest priority of a user /
group