Add ResourceHandler and APIHandler structs