VID-1888 Add hook to add type='navigation' to galleries if needed

These methods do *almost* the same thing. The one in the maintenance script also keeps a tally of gallery parameters it sees for a final report while this one doesn't. Also that script will just be run just once to convert all existing galleries, and once it's done this hook will take over converting all the new ones and we shouldn't have to use it again. If we did go through the effort of making a shared function, which could also support the tallying functionality, that script would have to be code reviewed again and then remerged before we could run it. I'd argue we let there be just a bit of code duplication between our app code and one time scripts this time. I think trying to make this functionality shared would create more headaches than it would prevent.