Modified kairosdb.js to use the builder pattern where it returns this from the functions.