Added a log.js module

start of refactor of global MAS object