Ported authreg module manager
Ported c2s component as base module
Added signal handling to xmppd main

and some initialisation and -v ersion
offsetof macro is defined in stddef.h
WIP: Ported base routing logic to xmppd