Fixed UrlService's getPermalinkByUrl method
Fixed UrlService's getPermalinkByUrl method

refs https://github.com/TryGhost/Toolbox/issues/127

- The "withUrlOptions" is used internally in the constructor by the frontend's routers. To avoid passing around a whole function from the frontend routers duplicated the functionality from there.

ErisDS/Ghost,e10/Ghost,TryGhost/Ghost,ErisDS/Ghost,TryGhost/Ghost,ErisDS/Ghost,TryGhost/Ghost,e10/Ghost