First fixes and additions to route.php
Replaced finditems function
Added getPath function to categories.class