convert_ical_to_json: Refactoring. Parse files given as parameter.