GET and POST component json to /data. Assumes a mongodb instance running locally on 27017
fix merge conflict