Exception catchin in main loop
Client messages parsing is now working
Made Server instance singleton

Now it can be accessed everywhere.