Basic logging support

Implements bug #43. A new set of API entries were added to support
generic logging in libchula. Different backends can be implemented.