added automatic ressource type detection in comments and gallery teaser
added group surfers table