revert fix($location): make legacy browsers behave like modern ones in html5Mode

These commits have caused more problems than they've been worth, and we get to remove some code,
too.

Opinions on reverting these would be appreciated! /cc @IgorMinar
can't revert this I don't think, some newer tests are actually using this feature, it's proven to be somewhat useful