Moved api_key and api_version to isntance variables, to play nice with multi-threaded environments
Updated gems and tests