fix($location): store REQUEST_URI in cookie

Request Type: feature

How to reproduce: 

Component(s): $location

Impact: 

Complexity: small

This issue is related to: 

**Detailed Description:**

With IE8 and html5mode, reloading the page to add hashbang lose server variables

**Other Comments:**

To fix issue #6195, setting the REQUEST_URI in a cookie before refreshing the page (for IE8 in html5 mode), and remove the cookie after the refresh is done.

What has been done:
- adding pathInCookie (bool) to add the REQUEST_URI in a cookie to not loose it after refresh (IE8 in html5 mode) and pathInCookieName (string) to specify the name of the cookie. Default will be "angular"

If anybody can help me to create testing case for this pull request that would be awesome