Implement logging.

Adds a very simple logging framework.
Merge branch 'master' of github.com:chrisrennick/ccmd into devel

Conflicts:
	src/ccmd_main.cpp
Merge branch 'devel'