fix($location): store REQUEST_URI in cookie for later use by server side when using IE8 in html5mode

- add pathInCookie (bool) to add the REQUEST_URI in a cookie to not loose it after refresh (IE8 in html5 mode)
- add pathInCookieName to specify the name of the cookie. Default will be "angular"

Closes #6195