Incorporated angular-local-storage to use local storage where supported and fallback to cookies; renamed cookieService to storageService