Porting timeout option from got
Merge pull request #3 from floatdrop/timeout

Porting timeout option from got