added sum and average functionality

Added sum and average functionality
https://github.com/balderdashy/waterline/issues/61