Properly setup the device after the periferias has been set up
fixes in sensor handler

* pass request and response structures as a reference
* fix format string warnings
properly initialize sensors in unit tests
add delimited message routines