[api] Add window-sum for calculating a sum based on an internal window
Merge pull request #3 from indexzero/add-window-sum

[api] Add window-sum for calculating a sum based on an internal window