ConnectionId type alias used where appropriate.
IdGenerator api added.