First commit abstracting api response into a ruby hash

Need to translate into a d3 object