Tweaked REST API. Added a simple client to query the REST API