Communication with the server is (mostly) working

All the codes were changed.
Much refactoring is to be needed.
Very good level