Refactor rule category field to extract paths calculation to API

It was calculated with the category paths and search tokens in the RuleFeed.  Moved this logic to the API.

Now it only receives a list of category ids and the category paths as well as the search tokens are calculated in the API
this was done previously in the RuleController bulkCreateOrUpdate, in a try/catch block. I had to move it cause i wrapped the code throwing that exception in a future, so this was the only way I found to keep keeping track of these sort of exceptions