Change is_member_of to use roles instead of groups and users

NOTE! I haven't run the test suite yet.