Stream and log thread safe class.

See log.hpp for how to use the log class (LOGI).
See test.cpp for a demo.

Signed-off-by: mat tso <mat-tso@topmail.ie>