Rewriting code

Created new module: commands
Refactoring code in server.py and console_client.py