Moved log to its own node module and using npmlog.
Added logging for web api