Implemented client authentication fixes iit-Demokritos/PServer#4 fixes iit-Demokritos/PServer#3