1.add custom template support
2.switch from nodeunit to mocha+chai
3.update version to 1.0.0.