We need to convert 'basal-rate-change' events into segments that look like.

```
{
    "delivered": 0.65,
    "end": "2014-03-07T04:00:00",
    "deliveryType": "scheduled",
    "value": 0.65,
    "start": "2014-03-07T02:00:00",
    "type": "basal-rate-segment",
    "id": "893dedf8-1d10-45dd-99c9-b79dcd516f32"
}
```