Merge pull request #5 from lcp/fix_stddev

Initialize sum_sq before using it
Seperate out protocol handling from connection.
Add in etcd support.