Added Log.js.

Change-Id: I079cc058f4f19f09539086f2f2a15e1eb20c54ad
tests: Don't use Buffer.set.

Change-Id: I3f0857de085989d0968d9a3751a2d076587eb226