http: catch panics

R=rsc
CC=golang-dev
https://golang.org/cl/4559067
2 files changed