Profile resource and index rendering (csv and json)

fixes GET of profiles (single resource and index of profiles belonging to an entity) from the API both in csv and json format.