Multiple fixes

- move fetching groups, photosets, galleries to afg_libs.php
- Add sorting for groups, photosets, galleries
- Add missing afg-wrap css