add optional curl timeout
Merge pull request #25 from adamholte/master

add optional curl timeout