A library for doing sane OAuth2 flows in command line tools