Added logging package and implemented log4j and commons logging methods.

Signed-off-by: Petr Kukral <petr.kukral@centrum.cz>