Add configurable timeout to client.

Per #37