Fixing the titles for docco.
Promise isn't very functional at the moment, but it prevents the issue of calling a deferred multiple times.
More workings to get a more functional approach to promise construction.
Removing some states and hiding others.