Update the events by_tags function to take the same basic parameters as the events plugin, and update them to clean it up, and share code