Rewrite _curl() to download only 5000 bytes of document, if $limit is set

Signed-off-by: Andrew Phelps <andrew@phel.ps>