DOCS-27 Change client so that the API key is retreived with a PUT and us...

...es x-www-form encoding for that