Update ical.php

added calendar exports per category
added some special handlings for merging some categories