Remember tab upon page reload

This commit helps the group directory page "remember" what tab should
be displayed at page load, using cookies and modifying the object
passed to bp_ajax_querystring. This is targeted at installations where
the regular groups directory has been replaced with the tree view.