Added HTTP timeouts

Fixes #6.