* directory: reflect search/filter state in URL hash
Show current view in the URL fragment so links can be shared
and browser Back/Forward navigates between views:
#active — active groups
#new — recently added
#q=… — search query
Button clicks push history entries; typing replaces state
to avoid flooding the history stack.
* refactor
---------
Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>