Started a refactoring for groups functions (to be able to change how groups works hopefully one day)... something may still be buggy... fixed also a bug for data-href.