improve extension error handling

- move roots.bail to it's own api file
- remove default console.logs from the api itself,
  move them to the cli handler
- improve extension failure test fidelity, find a small
  bug while doing so
- add tests for roots.bail error messages