Future-proof an incorrect comment.
Increase VERSION to 1.2.
Quote some variables.
Move pt.go to a pt package.
Use Go workspace layout.

http://golang.org/doc/code.html#Workspaces

This allows importing the pt package without using a local import like
"./pt", which is not well supported by gccgo and I gather mostly
discouraged.
fmt.
Move socks library to pt/socks.
Unexport somethings in socks.
Bail out after failing to open a listener.
Typo.
Comment tweaking.
Move websocket into its own package.
Capitalization of WebSocket types.
Comment tweaking.
fmt only our own programs.
Remove "WebSocket" prefix from types.

It's redundant since moving to a websocket package.
Move logMutex next to the function that uses it.
No need to export these local functions.
Doc typo.
Provide methodName to ConnectOr in doc example.