Add web version of rebuild-graph

This PR adds a web endpoint that allows the graph to be rebuilt without bringing down the server.