This PR adds the first step towards supporting custom activity types and custom activity type categories.