Handle http errors in one place
Add logout function
update example to be inline with changes
Merge pull request #3 from tidepool-org/blip-integration-2

updated tests and verified with clamshell