add flatten and map methods to streamline results across provider APIs, fix net https posts for ssl, and correctly handle errors from stellae response