katsomo.lua: add code to handle both treeId and progId in url