Improvements to the edit-event template
Fix problems with upgrading from older versions
Fix off-by-one error in dayclick stuff.