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 return what `$window.localStorage.getItem` returns, i.e. `jsonObject`. You're doing a truthy check on the return already, so it's likely to be `undefined` or `null` right? No need for `value`, or rather rename `jsonObject` to `value`.