Refactoring, removing obsolete content
Simplify: Add new IDs to head instead of tail

allows to remove IDAddon
More save deallocation: move from python to C