Pct 697  agent running but down in pct

Let's use `test/mock/ws_server.go` and http://golang.org/pkg/net/http/#ListenAndServeTLS.  I'm pretty sure we can generate our own SSL cert then start a local mock wss server.  It's best to keep agent completely decoupled from real API.