V4 progress
Added JSON API
Made DataDetail API more generic and re-useable