feat($client/index): add depth option for directory expanding on root

Where 'root' is the root page (at path '/').
feat($client/index): add option to completely disable any automatic
expansion of directories on the root page

The option also disables expansion on other similar types of pages such
as error pages and search result pages (anything not an active page or
directory).