PK encription is still broken. the code now compiles
connection setup fully functional. moved token verification to the top pf groupserver handling loop (not tested)