Making comments on random lines in code review so that we can have a threaded conversation.

I'm going to try to pair up the mongo with the vis formats in some comments just to help me organize thoughts/discussion as well.

Mongo, two events.  
First, the initial delivery
```
{
  deviceTime: 'time1',
  type: 'bolus-normal/dual',
  bolus: 3.6,
  value: "3.6",
  delivered: "3.6"
  programmed: "3.6"
}
```

Second
```
{
  deviceTime: "time2",
  type: 'bolus-dual/square',
  bolus: 1.7,
  value: "1.7"
  delivered: 1.7,
  duration: '90', // in minutes!?
  programmed: "2.3"
}
```

And this needs to be converted into

```
{
    "initialDelivery": 3.6,
    "extendedDelivery": 1.7,
    "value": 5.3,
    "recommended": ???,
    "deviceTime": "time1",
    "duration": 14400000,
    "extended": true,
    "type": "bolus",
    "id": "19bbfa82-7ee8-4f5c-a8c7-d3b9821aece3"
}
```

Is that correct (I adjusted numbers in the output to match up with the input, I believe.

It looks like "recommended" is not possible, I'm assuming that's some value from a wizard?  Also, there's a "programmed" on both of the initial data points that I'm not sure what to do with.

I think that since the viz is taking the duration in millis, we might as well also convert it to millis rather than store it as minutes.

@bewest or @jebeck if you could help explain what "recommended" and "programmed" should be.  And verify that my understanding is correct or incorrect, I think I can move forward with this one. 

As a bit of an aside, on the "extended": true attribute, I wonder if we shouldn't have a "subType": "extended" on the vizualization schema instead (essentially allowing for other types of boluses if they ever come).