Lwt-style client is now functorised

Signed-off-by: David Scott <dave.scott@citrix.com>