add optional curl timeout

For batch updates I needed a longer curl timeout so I added it as an optional parameter.