Refactor CGUIWindowManager::DispatchThreadMessages() to be a solid
thread message dispatch and process method.
Add method to remove specified thread message in the message queue.