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).
It returns incorrectly whenever cookies are not supported, because it actually caches them locally between digest cycles