cal: add month contents structure

This changes determination of calendar month content completely, as well
as outputing.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
cal: use month contents structure when --three printing is requested

Signed-off-by: Sami Kerola <kerolasa@iki.fi>