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).
Good point. I thought `$cookieStore` returned null, but after more testing it looks like it is undefined if the cookie doesn't exist.