add a macro to build csv file compliant with cortext standard

[ci skip]
rework metadata handling in csv generation process
Merge branch 'master' of github.com:taniki/calendata

[ci skip]