Added method to create role with permissions

Also updated assignPermissions and removePermissions to support roles.