Moved stuff out of bitly-client in preparation for making it standalone.