New implementation fo main loop. Now using REQUEST_DEVICE command for any write operation
Fix SIGSERG for __DEBUG__ build
Integarte sqlite gateway

- sqlite gw is integrated
- generate event on engine auto start/stop
Update motor status in case of SRV originated command to avoid spuriouse following HND event