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?

Thank you!