Json output

Add support for basic JSON generation in Calendars
Perhaps it's cause I'm looking at the diff and not the original source, but I can't tell where you handle the error case of iCal not parsing properly