Add iCal support, plus many small changes suggested by code inspection -- mostly...