Add support to send deferred messages.

Currently, any window state change messages are not sent by the host until
connection is established. The patch adds support to queue all these messages
and dispatch them after the connection is established.
Dont dispatch duplicate show events.

We send an ipc message for every visibility change event. Currently, we
dont check if the visibility state has changed before sending the message.
The patch adds state checks before sending the message.
Send size attributes along with state change information.

Many of the window state changes effect its bounds i.e Maximize, Resize,
FullScreen etc. The patch adds support to send this information along with
the effected state.
Add support for sending window bounds.

This patch adds support for sending window size information over ipc
channel as needed.
Fix window resizing.

Now, window knows its correct bounds before it's realized. The patch removes
all un-necessary resizing code.
Merge pull request #87 from kalyankondapally/WindowResizeReview

Window resize review