The Grothendieck theory of dessins d'enfants: Moore and Seiberg equations, topological field theories and Galois theory