Issue #2371875 by chx: Fixed session_manager can't be reasonably overridden.
Issue #2325517 by lauriii, Alienpruts, Tom Verhaeghe, joelpittet, rteijeiro | Cottser: Add methods for adding/removing attributes (not classes) on Attribute objects.