added multithreading support
Context class was ambigous, added namespace prefix
some string allocation and deallocation to avoid memory leaks
log only on main thread
add pragma once
Merge pull request #2 from saary/log-on-main

Log on main