Added safe_route generator for weighted graph
  Output is encoded polyline sent to client
  TODO: refactor client side to accept and show polyline