Implement access control with Agavi: "Agavi is an open-source, flexible, and scalable framework for application development. One of its key features is a full-featured API for user authentication and role-based access control. Examine this API in detail, and see how to add sophisticated application-level privilege management and manipulation to a Web application."