Only do weekday calculations when the month is changed

This also fixes the incorrect behaviour when navigating to the previous month,
since the length of the new month is available.

Fixes #1.
Merge branch 'master' of github.com:Willem3141/kos-calendar