Support for specifying (existing) categories and references when creating and updating activities #6