Moved the implementation of key_Server to a class (vs __main__)

This should make the code a bit more OO than before. Sadly, some logger
is blocking the start so that needs to be fixed.