Apply new controller contract to services and debug.
Move httpserver to another package and rename api to api_handler.