Added a simple JSON API server