The device folder tree class.

Implements the Device folder tree. This is the framework.
Rest comes later.