Adds runtime dependency on json gem
Adds a samples_by_minute function to the api model.