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).
In which case I think `cookie.get()` should return `undefined` or `void 0` based on a truthy check of `$cookieStore.get(key)`, to ensure that both will always return `undefined`.