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

Make a resource URL dynamic, in case the used API can be replaced by another.