Fix a couple of Ajax related path issues

  - Include context path when generating page specific JS
  - Include context path when making Ajax requests
  - Fix Ajax path matching (previously renderVersion was being set to
    "ajax")

fixes #1591 
Yeah, I just aped the way cometServer is handled (which also defaults to
the context path). Would hosting comet or Ajax requests on a separate
server actually work? I suppose it might for Comet requests since it
encodes the session ID in the request. I don't think it would for Ajax
requests though. I'll change it to contextPath.


On Wed, Jul 30, 2014 at 5:19 PM, Diego Medina <notifications@github.com>
wrote:

> In web/webkit/src/main/resources/toserve/lift.js:
>
> > @@ -73,6 +73,7 @@
> >          window.location.href = "/";
> >        },
> >        cometServer: "",
> > +      ajaxServer: "",
>
> why not calling it contextPath if this is what we are really using here,
> when I first read the changes, I thought ajaxServer was a variable
> holding a hostname of a separate server that knew how to handle ajax calls.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/lift/framework/pull/1597/files#r15590421>.
>