code cleanup in get_date() to get rid of global variables
several changes due to the use of date_t type (today and slctd_day moved to
static variables in calendar.c)
get_date() recoded and moved to calendar_set_current_date()
layout variable added to conf_t type
bugfix: layout is now properly restored (thanks Jose for reporting this
bug)
bugfix: apad width is now correctly updated when changing layout