More of less

Just factoring out common code. A FYI of what I am doing. Next I can clean up data.go and handler.go to remove common code. I also want to rename connection, but used it while I am thinking of a better name.

How do you want to package this? go get-able?

Seems like a waste to use external Javascript given your cool code. So was trying to think of a simple table driven test that uses pure Javascript. 

Cheers!