Library of common functionality for tidepool