Added roles and role checking mechanism. Added the role entity and config.