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

The parameter tally was added for my own interest but I agree these can remain separate.  Once we convert the markNavGalleries.php script may as well be deleted (something we should consider doing) at which point there is only one copy of this code.