HC Fixes & Time Sync

Headless Client initialization was fixed and the time sync was rewrote
into timeModule.fsm with improvements and support for headless clients.