Add sensor datamodel and sensor handler

Moved the sensor datamodel to a separate file and added sensor
handler class. Also modified the sensor controller and unit test.
This code is based on the new API worker architecture.

Change-Id: I504634bb06391ab50b254fdf0f2a7f0f1bb36aee
Merge "Add sensor datamodel and sensor handler"