Ajax: move ajax event aliases to their own file

Fixes #15126