Add log4qt library.

Move QtSingleApplication from app to common.