Json consistency

Use @ramnathv `to_json` and test with nvd3 and dimple.  All tests passed.  Also, updated nvd3 to newest version and added multiple tests in examples.R