Updated widget tests for new calendar properties.
Added needed initialization of settings. Simplified the way upcoming and past events are collected, with conditionals to avoid unneeded work. Also, in the related preparation for the return from calendar view code, dicts of upcoming and past events are put in a list and ordered according to properties. The template code simply iterates over the events_dicts provided, for either or both upcoming and past events lists. Fixed tests for new calendar properties and config settings.