Refactored amon to support node 0.10.x.