Refactored role-based authentication and implemented config-based role assignment.
Updated and improved role-based authentication demo.