Build a simple Library Management REST API with exactly 4 entities, CRUD operations, layered architecture, and role-based security.