creates data resolve to get localStorage, making sure data is present before loading controller.