Adds tags for events

This commit adds the possibility to add tags to an event

tags can be either given as an array or a comma-separted string.
handle the case where there are no tags, or a string is supplied instead of an array