Added API method in the Router API to save graph to disk

Makes it possible to push a graph object over the wire and save it on hard disk. Reading the graph then allows OpenTripPlanner to use this graph object again when OpenTripPlanner restarts.