Adds date ranging and a rudimentary JSON API