set window.location properly
use replaceState instead of pushState, and use the full server url.

The full server URL is needed to make DDP work.
Merge pull request #4 from marbemac/master

set window.location properly