updates javadoc comment for getEffectiveResourcePermissions() to reflect inclusion of global permissions from previous fix
adds test cases for setResourcePermissions() to only consider the accessor's direct permissions and to ensure error message only references unauthorized permissions
fixes #2 - setResourcePermissions() now only considers the accessor's direct permissions and only requires the granting privileges that are necessary