cal: determine how many header lines are needed at initialization

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
cal: add month contents structure

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