Allow custom osm base url

@aashish24 Can you review and merge this is to allow an external OSM server.