Add contextual leveled logger (-debug) + fixes.