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).
If the cookie value is `false` or `0` then we still can't parse it for an auth token, so a truthy check is probably the best choice