feat($client): add expand/collapse all directories buttons

Adds 'expand/collapse all directories' buttons to the directory listing
(index) and also a 'collapse to active (current) page/directory' button.