Re-implement 'WindowProc'.

Previously the main window procedure function - 'WindowProc' - for the
game was implemented as a large switch statement. The re-implementation
seen in this commit moves each message handler into its own function.

This done more for code segregation and readability than it was done for
performance increases; of which no substantial gains actually exist.