Export groups data in json format

This patch allows to export groups data into json format, matching the
import format of groups-static-pages repo's groups.json. The feature
available under /feed/groups.json callback.

Change-Id: I5839395e17d6bb0c1e6db185ac29e7697c829318
Story: 2000011