Add logging facility to base.

This CL needs mor improvement.
There is too many pending TODO.
And, it must be landed soon because all others CLs depend on it.

R=fdoray@chromium.org, fdoray

BUG=

Review URL: https://codereview.appspot.com/53040044