Improvements to calculated fields.

- Calculate last x months from the last timestamp not from today's date.
- Refresh ES after each calculation
- Better parsing of summary stats.
Merge pull request #346 from MastodonC/feature/improvements-to-calc-fields

Improvements to calculated fields.