Fix #421. Add read timeout to API to make sure we don't keep thousands of connections open needlessly.