Fix log and add log test.
Using goroutines for logging does not guarantee order, therefore it's
now being done without goroutines. Edited makefile to add support for
making and testing the log package.