Add the possibility to set a namespace.

Hi,

This is a PR which add the possibility to configure a namespace when creating a client.
Please let me know if anything is wrong.

Cheers,