An implementation that creates nested $resource objects