added sum and average functionality

https://github.com/balderdashy/waterline/issues/61