Add Service datamodel and Service handler

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

Change-Id: Icf7997f91439b6a26e4792438fc01552e4348420