Amenability and ergodic properties of topological groups: from Bogolyubov onwards