Add logger.
Changed logging codes.
Add string util functions.
Update libswo.