Added a module for managing used tokens (names etc.) and integrated it into fresh id generator.