Thinkful project - instagram clone using Angular.Js with $http and promises