Error if selfLink contains nested properties

See https://github.com/mgonto/restangular/issues/284

Instead of changing config.getFieldFromElem() I've modified config.getUrlFromElem() which solves the issue and pass the existing tests.