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).
I think this should only run if cookies are unavailable. No point polluting localStorage if we can use cookies.