Replace globals with a context struct
Replace globals with a context struct

This is mainly done to prepare passing arguments to make the server
configurable.

Signed-off-by: Soeren Grunewald <080f3d39b0ddab49332ada0794c0adc5586d92a4@desy.de>

Finii/AdvancedIDServer