Added max capacity function for groups.

route to get max_cap is ''/maxcap/group". It'll return a json file.