Remove userId state in api service

Use `tidepool.getUserId()` when needed to construct api calls.
Complete migration to platform-client for api

- Migrate all device data calls and processing out of this codebase, and
  use platform-client
- Complete change from `teamId` to get notes to `userId`