nitweb: move APIHandler to web_base