Server totally rewritten :)

Once again ... I've restarted from scratch
Client has to be rewritten