Change logger to use bunyan. Change index.js to export a function.