move testing code out of background.js
Logger.error
make logger more colorful
fix some linting errors
fix another linting error