Remove chai dep

Chai assertions are not seen by nodeunit. Rather than use them copy equivalent functionality to nodeunit's assert module and remove the chai dep.