Jhbate/integration

@nicolashery @ianjorgensen still have a couple more pieces to integrate (i.e. remove myself from care team which appears not to be wired up in the ui yet) but should be ship-shape for merging with the current a-and-i branch.

Cheers
Jamie 
Not sure if this is going to do what we expect? If I'm user `11`, and my `perms` object is:

```javascript
{
  '11': {root: {}}.
  '21': {view: {}},
  '31': {upload: {}}
}
```

(i.e. I have access to user `21` and `31`'s data)

Then we'd like the `person` object for patient `21` to have an attribute:

```javascript
{
  permissions: {view: {}}
}
```

But with this code I feel like the attribute will be:

```javascript
{
  permissions: [{root: {}}, {view: {}}. {upload: {}}]
}
```

Because `tidepool.getAccessPermissions` gets the current user's permissions for each `group` she's in right?

I might be wrong. Did you test this?