Refactor CGUIWindowManager::DispatchThreadMessages() to be a solid
thread message dispatch and process method.
Add method to remove specified thread message in the message queue.
Merge pull request #2253 from ulion/dispatch_gui_thread_message_in_order_fix

Refactor CGUIWindowManager::DispatchThreadMessages() to be a solid thread message dispatch and process method.