Added some new API functions for folders and devices and device trees.