Kill an API request if it doesn't respond within a specified timeout

- Fixes #24