Introduction to Promises.

In the previous section we saw that $http methods give us promises. But what exactly is a promise?