Added CreateFolderIcon to TreeItemFactory

This way the using application can determine what icon is used for
folders. If null, the default black icon will be used.