Can add capabilities to roles

Added logic for verifying that capability can be saved to role and tests