Simulate a login if working offline

Spent ages trying to get this one to work. Turns out that if you have a
hash in your dom href, it will loop back on itself. More details can be
found here:
http://stackoverflow.com/questions/16714947/angular-location-service-is-not-changing-path