Add server-side logging to snippets, with i18n for header.

* Use Html::element for header, since it is HTML, and I think this is
  the most straight-forward way to do a correctly escaped HTML element.

Change-Id: I6a943671471253a5dc7a76988b6cb2caf35c442f