ConsoleKit2 is a framework for defining and tracking users, login sessions, and seats.