dataframeToD3 helper function

This is a helper function to convert a JSON serialized data frame into a D3 dataset (with column names embedded in each data element). The motivation to do this on the client rather than the server in R is the more compact over-the-write representation afforded by data frame JSON.