Refactor first part of main().
Refactor first part of main().

* Removed fullscreen (for now)
* Moved winsock init to separate function.
* Inventory init to separate function
* Functions to search and find textures/shaders.
* Moved texture och shader loding to separate functions.

Over all, I tried to clean things up to make it more easy to read.
I have also added a little more error checking with informative
messages. I have removed some of the error checking on the command line
parameters, I intend to change the entire system.

konstructs/client,dragonly/client,dragonly/client,Henningstone/client,konstructs/client,dragonly/client,Henningstone/client,konstructs/client,Henningstone/client