Complete rewrite, menu and tree are built from files only (folders are omitted)