port to v1

ported to mirage v1.

serving as file fragments - branch `port-to-v1` is as far as i got trying to use cow. cf issue filed on ocaml-cow.

does at least try to template html HEAD element anyway.