Http Server: clean up the implementation using the updated API

With the simplified API, implementation can be simplified.  This series
do a clean up in the implementation, to align it with the updated API.

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>