Ported base routing logic to xmppd
Replaced direct log4c_category_LEVEL calls with LOG_LEVEL macros