[angularjs] $location / switching between html5 and hashbang mode / link rewriting