Added `replaceWith` method

Identical to `transitionTo` but it calls `replaceURL` instead of
`updateURL`. Useful for transitioning when the new URL should replace the
existing one. This will primarily be used with `replaceState`.