Add panel/:id/data json response
Small change from to_json to as_json
Generate json for panel-data using jbuilder