Allow logging functions to be passed in.

Update spinner to fit new api.
Update all calls to console.{log,warn} to use config logging