net: renamings
This is Go 1 package renaming CL #3.
This one merely moves the source; the import strings will be
changed after the next weekly release.
This one moves pieces into net.

http -> net/http
http/cgi -> net/http/cgi
http/fcgi -> net/http/fcgi
http/pprof -> net/http/pprof
http/httptest -> net/http/httptest
mail -> net/mail
rpc -> net/rpc
rpc/jsonrpc -> net/rpc/jsonrpc
smtp -> net/smtp
url -> net/url

Also remove rand (now math/rand) from NOTEST - it has a test.

The only edits are in Makefiles and deps.bash.

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/5335048
all: rename os.EOF to io.EOF in various non-code contexts

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/5334050

Committer: Rob Pike <r@golang.org>
net/http/httputil: new package; move ClientConn and ServerConn

Part of http diet plan.

More of the lesser-used and newcomer-misleading parts of http will
move here.

R=r, rsc
CC=golang-dev
http://codereview.appspot.com/5336049
httputil: move ReverseProxy out of http

http diet plan, continued.

R=golang-dev, adg
CC=golang-dev
http://codereview.appspot.com/5305090
http: only recognize application/x-www-form-urlencoded in ParseForm

R=golang-dev, dsymonds
CC=golang-dev
http://codereview.appspot.com/5322070
httputil: move dump and chunking functions out of http

This moves DumpRequest, DumpResponse, NewChunkedReader,
and NewChunkedWriter out of http, as part of the continued
http diet plan.

Also, adds DumpRequestOut (for dumping outbound requests),
since DumpRequest's ambiguity (the "wire representation" in
what direction?) was often a source of confusion and bug
reports.

R=rsc, adg
CC=golang-dev
http://codereview.appspot.com/5339041
http: clarify Request docs

R=rsc
CC=golang-dev
http://codereview.appspot.com/5342041
http: doc nits

Remove the last two "convenience" mentions.

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/5344041
http: support Trailers in ReadRequest

Available after closing Request.Body.

R=adg, rsc
CC=golang-dev
http://codereview.appspot.com/5348041
net/http: fix whitespace handling in sniffer.

A single character typo ("\n" instead of "\r") meant that
HTML data using DOS line breaks (CRLF) was not detected as HTML.

R=golang-dev, adg
CC=golang-dev
http://codereview.appspot.com/5365041
renaming_1: hand-edited files for go 1 renaming
This contains the files that required handiwork, mostly
Makefiles with updated TARGs, plus the two packages
with modified package names.
html/template/doc.go needs a separate edit pass.
test/fixedbugs/bug358.go is not legal go so gofix fails on it.

R=rsc
CC=golang-dev
http://codereview.appspot.com/5340050
renaming_3: gofix -r go1pkgrename src/pkg/[m-z]*

R=rsc
CC=golang-dev
http://codereview.appspot.com/5345045
http: make httputil's chunked reader/writer code a direct copy

Arrange the code so that it's easier to keep edits in sync.

R=golang-dev, mikioh.mikioh, bradfitz, andybalholm, rsc
CC=golang-dev
http://codereview.appspot.com/5345041
net/http: fix sniffing when using ReadFrom.

R=golang-dev, rsc, bradfitz
CC=golang-dev
http://codereview.appspot.com/5362046
net/http: use t.Errorf from alternate goroutine in test.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/5348051
http: add a disabled failing test for Issue 2357

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/5372044
various: reduce overuse of os.EINVAL + others

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/5372081
syscall: use error

- syscall (not os) now defines the Errno type.
- the low-level assembly functions Syscall, Syscall6, and so on
  return Errno, not uintptr
- syscall wrappers all return error, not uintptr.

R=golang-dev, mikioh.mikioh, r, alex.brainman
CC=golang-dev
http://codereview.appspot.com/5372080
cgi: make test code more readable

R=rsc
CC=golang-dev
http://codereview.appspot.com/5375089
net/http: fix build

empty is already not a nil.

R=golang-dev, bradfitz, rsc
CC=golang-dev
http://codereview.appspot.com/5376099