Make $location.path(...).replace() work.

Previously we didn't support chaining on path(), and we didn't have a
replace() method. The replace method doesn't actually do anything on the
server, but it needs to be present for compatibility with application
code that expects to be running in normal AngularJS.