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).
You can instantiate `var value = null;` so you don't have to check `value` and you can just return it.
```js
var value = null;
// do the storageType checks
return value;