Added a new parameter "cutoff", to limit the number of days in the past for which events will still be shown.

Added a new parameter "sortdesc", to change the sort order.

Changed the code for identifying events ending prior to current date and changed the default template accordingly.