Import jsonify
Change get_centroids funciton to returned JSON
Add /centroids router