Implement window sizing.

Start work on the client handler as it is required for the sizing.