Modified group totals cloud code

# Changes #

### cloud/main.js ###
- Group Totals function has been refactored to be able to work with an infinite number of records, as opposed to being limited by the 1000 record query limit.