Added a few more folder functions

folder_attach_foreign,folder_detach_foreign,folder_get_siblings and
folder_get_depth