server context handler

Add this reference to use the new feature:
@Html.Script(Url.Content("~/Telerik.Sitefinity.Frontend/ServerContext.js"))

It will declare a global variable "sitefinity".

Get a url of an embedded resource by calling:
sitefinity.getEmbeddedResourceUrl(assembly, path)

Get URLs of sitefinity services by calling methods from sitefinity.services:
sitefinity.services.getContentItemServiceUrl()
sitefinity.services.getUserServiceUrl()