code: function delay(mock, response) {
  				if (!mock || !mock.delay) {
  					return response;
  				}
  				return $q(function(resolve, reject) {
  					setTimeout(function() {
  						resolve(response);
  					}, mock.delay);
  				});
  			}
docs: Insert optional delay in response
  @param mock
  @param response
  @returns {*}