Refactor current year in copyright footer

A slight refactor of ffab6b4bbeb0ad0ee8451b74ce4e4631ccffc8b1, so that
we don't use javascript to get the current year. Instead, we use a newly
defined global jinja function to serve the date server-side instead.