Minor cleanup of role attribute checks and supporting functions.

* renamed role_has_capability to role_has_attribute
* removed has_role_attribute
* adjusted bitmask in set_role_attribute to assume for int64