consolidated functions and added fetchInvites from server on error
have fetchPatients only once
upated design after review with howard and brandon
Merge pull request #139 from tidepool-org/ian/inviteV2

consolidated functions and added fetchInvites from server on error