Make mongoose callback functions friends of WebPlot, allowing access to private members.