Fix bug in sample model/collection url construction

The old method worked fine when varify was deployed at the root of the server. This new url construction method works regardless of where the app is deployed.

Signed-off-by: Don Naegely <naegelyd@gmail.com>