Total rewrite derived from nathan7/pledge.

this brings:
  * a 7% performance increase
  * less code and cleaner code
  * better nextTick handling through timoxley/next-tick