This is a migration of the basic json support taken from the osv/httpserver. The routes uses the json object to return errors in a json format. This also adds json_exception which has a constructor from an exception. Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>