Add $ROOT substitution variable

This new variable allows you to retrieve the ID of the category or folder root.