The physics of edge localized modes (ELMs) and their role in power and particle exhaust