function visit(location, options) {
  session.visit(location, options)
}
Performs an application visit to the given location.

@param location Location to visit (a URL or path)
@param options Options to apply
@param options.action Type of history navigation to apply ("restore",
"replace" or "advance")
@param options.historyChanged Specifies whether the browser history has
already been changed for this visit or not
@param options.referrer Specifies the referrer of this visit such that
navigations to the same page will not result in a new history entry.
@param options.snapshotHTML Cached snapshot to render
@param options.response Response of the specified location