update download script to resume downloads when server supports it (fix #559)

@tfoote @wjwwood Please review.