Gateway uses the Fleau templating engine.

(Also, some commits from another pull request.