Improved client handling

Improved client handling, safe connecting and connection lookup, added side grid, fixed resizing of the client window