Fix #421. Add read timeout to API to make sure we don't keep thousands o...

...f connections open needlessly.