Added a RESTish JSON API