Clean up some repeated code, style changes
Add circle.yml
Add build badge
Readme cleanups
Merge pull request #2 from segmentio/refactor/cleanup

Clean up some repeated code, style changes