dock:: fix appid problem and change output message.

1. using wmClassname as appid if a window hasn't _NET_WM_PID.
2. changing some g_warning to g_debug, and set G_MESSAGES_DEBUG to make it work
on debug mode.