Merge pull request #19 from racker/dev/songgao

merge: added upgrade handler; using go-proxy-protocol for proxy line; more debug output
refactoring: added controller; auth before other endpoint handlers