Improve log library, integrate it in scans.js and misc.js
Merge pull request #1 from borisceranic/logger

Improve log library, integrate it in scans.js and misc.js