Templatify NetGameEventDispatcher and clean up some stuff along the way.