WIP added password authentication for server/agent/client. now the agent has actually a function. still pain text