Improve logging functionality

Adds Log.Write(...) and improves underlying implementation.
Merge branch 'master' of https://github.com/zongzhengli/Absolute-Zero