Add configuration options for API client timeouts

I wasn't sure what exactly would be considered an appropriate test.