Draw the year in the title bar

Furthermore, it is now possible to go to the next/previous year using the F2
and F4 buttons.

Also, fixed some bugs in the handling of leap years.