Mesoscale structures and mechanisms in ionic liquids