Use mw.api in Special:AggregateGroups

Bug: 62956
Change-Id: I28a0eb7c00b0e41fac6b4b72d96fef3ae2ec1a98