Pull host and key into an object which is a factory for the builders.
Merge pull request #16 from square/jw/rewrite

Pull host and key into an object which is a factory for the builders.