organizing for better readability, adding refresh token stuff
moving to curl for requests for better header/error handling