added (some) error handling to api
allow for sets to be read by 'path' and 'id' in sets/:id