Cache group

Cache the group and user groups in a array.
This allow to save ~ 75 SQL queries when I display my owncloud File page.