Add http server and handler function