Sketching a better subscription and waitOn API...
Sketching a better subscription and waitOn API...

Design thoughts welcome
cc @tmeasday, @Multiply, @Lepozepo
Issue #208

How it Works:
- You can call the `subscribe` method on a RouteController instance, which means
  you can call this.subscribe from a before hook.

- The return value of this.subscribe adds a wait() method that simply adds the
  subscription handle to a list of handles the user intends to wait on.

- Before hooks can now call this.wait(onReady, onWait). Notice we didn't pass a
  list as the first parameter. The default list is the RouteController's wait
  list. Multiple before hooks can call this method.

- You can still call this.wait with a list if you want to pass custom handles (a
  handle is just an object that has a ready() function).

- waitOn still works but all waitOn functions are called at RouteController
  constructor time and added to the waitList to be used when the controller is
  run. This helps ensure the subscriptions aren't called multiple times.

snamoah/iron-router,appoets/iron-router,TechplexEngineer/iron-router,DanielDornhardt/iron-router-2,sean-stanley/iron-router,firdausramlan/iron-router,Sombressoul/iron-router,ecuanaso/iron-router,jg3526/iron-router,firdausramlan/iron-router,tianzhihen/iron-router,abhiaiyer91/iron-router,sean-stanley/iron-router,abhiaiyer91/iron-router,tianzhihen/iron-router,ecuanaso/iron-router,iron-meteor/iron-router,Hyparman/iron-router,DanielDornhardt/iron-router-2,jg3526/iron-router,Sombressoul/iron-router,leoetlino/iron-router,assets1975/iron-router,assets1975/iron-router,appoets/iron-router,TechplexEngineer/iron-router,Aaron1992/iron-router,iron-meteor/iron-router,Aaron1992/iron-router,snamoah/iron-router,Hyparman/iron-router