wget, partially re-implemented in go