Moved some code out of base files to help keep track of them.
Began implementation of code to allow returning JSON for groups.
Implemented outline of functionality for getting the JSON value from groups. This has not been tested well yet.