moved and reworked some date functions from wega.xqm to date.xqm
some additional fixes to date:printDate()
creating the head of letters from the data rather than the normalized date; fixes #25