WIP: make refresh script more generic regarding yaml
with the list of attributes growing and getting more complex, it is not sustainable to manually recreate yaml-generation. This patch relies stronger on js-yaml features to generate a "standard" header.
This is WIP as the dates are still arbitrarily extended by time 0:0:0.