Add timeouts

In case the httplib connection gets hung, having timeouts help.

Not that httplib is implementing timeouts the way you want it,