Retrieves resources and versions in json format

Fixes issue #18