Save token to localStorage

Save token to localStorage as well as $cookieStore to support sites running in local filesystems with no cookie support (e.g. inside cordova apps).
I would think localStorage should be preferred over cookies, but the only reason is that it's newer and it's not cookies. Happy to hear the case against: I'm not that well informed.