httpserver: change httpserver::api::plugin::init arg. avoid use class reference, it uses extern "C"