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).
Yes, according to the spec `localStorage.getItem` returns `null` if not found, and we want to translate that to `undefined`