feat(ngResource): allow a resource URL to be a closure called when building URL

During the life-cyle of a resource, it can be possible that the targetted API
is changed or replaced by another. Having the URL as closure allows to build
dynamic URL for the resource.