nitweb: merge ModelHandler and APIHandler