Re-add data processing stuff from platform-client

Pulling the data processing back into blip.  This is a companion PR with 

https://github.com/tidepool-org/platform-client/pull/12