angular : $http timeout can be number or promise 

reference : https://github.com/angular/angular.js/issues/1159#issuecomment-19043323