First cut client library. Many simple APIs already supported.
extracted for fastmail