Basic $http service and window.localStorage concept.